mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: allow errors to propogate in integration sync to facilitate retries unless final attempt
This commit is contained in:
@@ -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, {
|
await integrationDAL.updateById(integration.id, {
|
||||||
lastSyncJobId: job.id,
|
lastSyncJobId: job.id,
|
||||||
syncMessage: message,
|
syncMessage: message,
|
||||||
|
|||||||
Reference in New Issue
Block a user