From c3e030e5a739664ba3351150bfdc77df691ccbb4 Mon Sep 17 00:00:00 2001 From: Alexandre Bourdin Date: Tue, 12 Oct 2021 16:00:43 +0200 Subject: [PATCH] Merge pull request #5422 from overleaf/ab-queues-default-job-options Add default job options for queues in analytics GitOrigin-RevId: ab8cf13a0ba35acb0b21519f21131df128bb3f29 --- services/web/app/src/infrastructure/Queues.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/src/infrastructure/Queues.js b/services/web/app/src/infrastructure/Queues.js index 8e7014844c..57feb0b6d6 100644 --- a/services/web/app/src/infrastructure/Queues.js +++ b/services/web/app/src/infrastructure/Queues.js @@ -42,6 +42,8 @@ function getPostRegistrationAnalyticsQueue() { function getOrCreateQueue(queueName, jobOptions = {}) { if (!queues[queueName]) { queues[queueName] = new Queue(queueName, { + // this configuration is duplicated in /services/analytics/app/js/Queues.js + // and needs to be manually kept in sync whenever modified redis: Settings.redis.queues, defaultJobOptions: { removeOnComplete: MAX_COMPLETED_JOBS_RETAINED,