Skip to content

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

fix: remove completed and failed reminder jobs

Daniel Hougaardcc3e0d19227e
diff --git a/backend/src/services/secret/secret-queue.ts b/backend/src/services/secret/secret-queue.ts
index 84a8584ee9..57d32ab116 100644
--- a/backend/src/services/secret/secret-queue.ts
+++ b/backend/src/services/secret/secret-queue.ts
@@ -248,7 +248,9 @@ export const secretQueueFactory = ({
? secondsToMillis(newSecret.secretReminderRepeatDays)
: daysToMillisecond(newSecret.secretReminderRepeatDays),
immediately: true
- }
+ },
+ removeOnComplete: true,
+ removeOnFail: true
}
);
} catch (err) {