Merge pull request #2507 from scott-ray-wilson/integration-sync-retry-fix

Fix: Integration Sync Retry on Error Patch
This commit is contained in:
Scott Wilson
2024-09-30 11:12:54 -07:00
committed by GitHub

View File

@@ -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,