Skip to content

Commit

Permalink
fix: allow errors to propogate in integration sync to facilitate retr…
Browse files Browse the repository at this point in the history
…ies unless final attempt
  • Loading branch information
scott-ray-wilson committed Sep 28, 2024
1 parent efa54e0 commit a44b3ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/services/secret/secret-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,11 @@ export const secretQueueFactory = ({
}
});

// re-throw error to re-run job unless final attempt, then log and send fail email
if (job.attemptsStarted !== job.opts.attempts) {
throw err;
}

await integrationDAL.updateById(integration.id, {
lastSyncJobId: job.id,
syncMessage: message,
Expand Down

0 comments on commit a44b3ef

Please sign in to comment.