diff --git a/src/adapters/notifications/NotificationCenterAdapter.ts b/src/adapters/notifications/NotificationCenterAdapter.ts index 5eb4c9661..faef01296 100644 --- a/src/adapters/notifications/NotificationCenterAdapter.ts +++ b/src/adapters/notifications/NotificationCenterAdapter.ts @@ -1286,6 +1286,10 @@ const sendProjectRelatedNotificationsQueue = 'send-project-related-notifications', { redis: redisConfig, + defaultJobOptions: { + removeOnComplete: true, + removeOnFail: true, + }, }, ); let isProcessingQueueEventsEnabled = false; diff --git a/src/services/cronJobs/fillSnapshotBalances.ts b/src/services/cronJobs/fillSnapshotBalances.ts index 5b0aaa5dd..92dabeff8 100644 --- a/src/services/cronJobs/fillSnapshotBalances.ts +++ b/src/services/cronJobs/fillSnapshotBalances.ts @@ -103,6 +103,8 @@ export async function addFillPowerSnapshotBalanceJobsToQueue() { }; fillSnapshotBalanceQueue.add(jobData, { jobId: `${FILL_SNAPSHOT_BALANCE_QUEUE_NAME}-${key}`, + removeOnComplete: true, + removeOnFail: true, }); } }