mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #7933 from overleaf/em-analytics-failed-jobs-headroom
Increase the number of retained failed jobs in analytics queues GitOrigin-RevId: 384a70b46d4eef5e07216664d6f5b94d52ca3152
This commit is contained in:
@@ -6,17 +6,30 @@ const Settings = require('@overleaf/settings')
|
||||
// uses the completed job records to report on job duration.
|
||||
const MAX_COMPLETED_JOBS_RETAINED = 10000
|
||||
const MAX_FAILED_JOBS_RETAINED = 50000
|
||||
const MAX_FAILED_JOBS_RETAINED_ANALYTICS = 3000000
|
||||
|
||||
const QUEUES_JOB_OPTIONS = {
|
||||
'analytics-events': {},
|
||||
'analytics-editing-sessions': {},
|
||||
'analytics-user-properties': {},
|
||||
'analytics-events': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED_ANALYTICS,
|
||||
},
|
||||
'analytics-editing-sessions': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED_ANALYTICS,
|
||||
},
|
||||
'analytics-user-properties': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED_ANALYTICS,
|
||||
},
|
||||
'refresh-features': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED,
|
||||
attempts: 3,
|
||||
},
|
||||
'emails-onboarding': {},
|
||||
'post-registration-analytics': {},
|
||||
'emails-onboarding': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED,
|
||||
},
|
||||
'post-registration-analytics': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED_ANALYTICS,
|
||||
},
|
||||
'scheduled-jobs': {
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED,
|
||||
attempts: 1,
|
||||
},
|
||||
}
|
||||
@@ -42,7 +55,6 @@ function getQueue(queueName) {
|
||||
redis: redisOptions,
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: MAX_COMPLETED_JOBS_RETAINED,
|
||||
removeOnFail: MAX_FAILED_JOBS_RETAINED,
|
||||
attempts: 11,
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
|
||||
Reference in New Issue
Block a user