mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 22:37:10 +00:00
Merge pull request #5422 from overleaf/ab-queues-default-job-options
Add default job options for queues in analytics GitOrigin-RevId: ab8cf13a0ba35acb0b21519f21131df128bb3f29
This commit is contained in:
parent
96d9e6578a
commit
da6d6abe80
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue