mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 20:27:12 +00:00
Merge pull request #2507 from scott-ray-wilson/integration-sync-retry-fix
Fix: Integration Sync Retry on Error Patch
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