From 5949eca71fa95d5d27433ffa122e2f1044ea8f24 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Nov 2022 15:16:06 +0100 Subject: Increase old jobs to delete per hour --- server/lib/job-queue/job-queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/job-queue') diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index 91366c481..866aa1ed0 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts @@ -492,8 +492,8 @@ class JobQueue { async removeOldJobs () { for (const key of Object.keys(this.queues)) { const queue: Queue = this.queues[key] - await queue.clean(parseDurationToMs('7 days'), 100, 'completed') - await queue.clean(parseDurationToMs('7 days'), 100, 'failed') + await queue.clean(parseDurationToMs('7 days'), 1000, 'completed') + await queue.clean(parseDurationToMs('7 days'), 1000, 'failed') } } -- cgit v1.2.3