Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: allow errors to propogate in integration sync to facilitate retries unless final attempt

Scott Wilsona44b3efeb7d8
diff --git a/backend/src/services/secret/secret-queue.ts b/backend/src/services/secret/secret-queue.ts
index ce9c58391c..ff4fa595f8 100644
--- a/backend/src/services/secret/secret-queue.ts
+++ b/backend/src/services/secret/secret-queue.ts
@@ -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,