keep up to 1000

completed newsletter tasks within a day
This commit is contained in:
Hongbo Wu
2024-08-22 21:01:19 +08:00
parent 96c118f163
commit 4ebb555f55

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,
},
}
}