From c370c4987e67a6281b4e21bbcb27cf3eca5a47b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Rame=CC=81?= Date: Mon, 18 Mar 2024 16:35:23 +0100 Subject: [PATCH] chore: wait for 48 hours minimum before reprocessing initiatives having reachability errors --- src/features/initiative.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/initiative.ts b/src/features/initiative.ts index 6713d88..b0b78e4 100644 --- a/src/features/initiative.ts +++ b/src/features/initiative.ts @@ -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), }, }, ],