use default remove-on-complete settings from the queue for saving newsletters tasks

This commit is contained in:
Hongbo Wu 2024-08-23 11:00:56 +08:00
parent de083c3a8b
commit 50ae288c0d

View file

@ -55,14 +55,6 @@ 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,
},
}
}