Skip to content

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

fix(secret-sync): release the connection slot once when the connection changes

adilsonca62619f287c
diff --git a/backend/src/services/secret-sync/secret-sync-queue.ts b/backend/src/services/secret-sync/secret-sync-queue.ts
index db17721879..3c176237b8 100644
--- a/backend/src/services/secret-sync/secret-sync-queue.ts
+++ b/backend/src/services/secret-sync/secret-sync-queue.ts
@@ -1300,7 +1300,6 @@ export const secretSyncQueueFactory = ({
`SecretSync connection changed, releasing slot and requeueing [syncId=${syncId}] [job=${job.name}] [connectionId=${connectionId}] [currentConnectionId=${secretSync.connectionId}]`
);
- await $releaseConnectionConcurrency(connectionId);
await $handleAcquireLockFailure(job as SecretSyncActionJob);
return;