Merge pull request #4311 from omnivore-app/revert-remove-on-complete

keep up to 1000  completed newsletter tasks within a day
This commit is contained in:
Hongbo Wu 2024-08-22 21:12:58 +08:00 committed by GitHub
commit de083c3a8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,14 @@ const getOpts = (jobType: EmailJobType): BulkJobOptions => {
type: 'exponential',
delay: 2000,
},
removeOnComplete: {
age: 3600 * 24, // 1 day
count: 1000,
},
removeOnFail: {
age: 3600 * 24, // 1 day
count: 1000,
},
}
}