feat(api/queue): auto-remove completed jobs after 25 hours

This commit is contained in:
Gergő Móricz 2024-09-12 19:47:15 +02:00
parent 620b02f9ca
commit d497284b40

View File

@ -16,6 +16,14 @@ export function getScrapeQueue() {
scrapeQueueName,
{
connection: redisConnection,
defaultJobOptions: {
removeOnComplete: {
age: 90000, // 25 hours
},
removeOnFail: {
age: 90000, // 25 hours
},
},
}
// {
// settings: {