diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-28 15:16:06 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-28 15:16:15 +0100 |
commit | 5949eca71fa95d5d27433ffa122e2f1044ea8f24 (patch) | |
tree | ea45c3316e2bf1dffdcb9bd36c8808342107c5a5 | |
parent | f7b00376a859d6209e6573e0fe37dbf886677d8a (diff) | |
download | PeerTube-5949eca71fa95d5d27433ffa122e2f1044ea8f24.tar.gz PeerTube-5949eca71fa95d5d27433ffa122e2f1044ea8f24.tar.zst PeerTube-5949eca71fa95d5d27433ffa122e2f1044ea8f24.zip |
Increase old jobs to delete per hour
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
492 | async removeOldJobs () { | 492 | async removeOldJobs () { |
493 | for (const key of Object.keys(this.queues)) { | 493 | for (const key of Object.keys(this.queues)) { |
494 | const queue: Queue = this.queues[key] | 494 | const queue: Queue = this.queues[key] |
495 | await queue.clean(parseDurationToMs('7 days'), 100, 'completed') | 495 | await queue.clean(parseDurationToMs('7 days'), 1000, 'completed') |
496 | await queue.clean(parseDurationToMs('7 days'), 100, 'failed') | 496 | await queue.clean(parseDurationToMs('7 days'), 1000, 'failed') |
497 | } | 497 | } |
498 | } | 498 | } |
499 | 499 | ||