Skip to content

Commit

Permalink
chore: wait for 48 hours minimum before reprocessing initiatives havi…
Browse files Browse the repository at this point in the history
…ng reachability errors
  • Loading branch information
sneko committed Mar 18, 2024
1 parent af14a6d commit c370c49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/initiative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ export async function feedInitiativesFromDatabase() {
},
},
lastUpdateAttemptWithReachabilityError: {
lt: subDays(new Date(), 1), // Skip rows with high probability of failure since they had recently a network reachability issue
// Skip rows with high probability of failure since they had recently a network reachability issue
// Note: since from scratch this batch can take several days and could be retried multiple times, we wait for 48 hours minimum
lt: subDays(new Date(), 2),
},
},
],
Expand Down

0 comments on commit c370c49

Please sign in to comment.