keep up to 1 hour complete tasks and up to 1 day failed tasks

This commit is contained in:
Hongbo Wu
2024-08-22 15:27:59 +08:00
parent eec2734f5a
commit 47cea15480

View File

@ -111,10 +111,10 @@ export const getQueue = async (
delay: 2000, // 2 seconds
},
removeOnComplete: {
age: 24 * 3600, // keep up to 24 hours
age: 3600, // keep up to 1 hour
},
removeOnFail: {
age: 7 * 24 * 3600, // keep up to 7 days
age: 24 * 3600, // keep up to 1 day
},
},
})