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:53 +08:00
parent f0865654dc
commit eec2734f5a

View File

@ -16,10 +16,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
},
},
})