aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-23 17:13:01 +0100
committerChocobozzz <me@florianbigard.com>2022-11-23 17:13:01 +0100
commitc3b21b68b55fa5cb0ee7a23e4316b5466a0448f0 (patch)
tree8b7d0be8a57dc9a57a6f9d3af4a69578f06c0c4c /server/lib/schedulers
parent5800f354ccd4845d0b4bc212a0c53a0ff40edf82 (diff)
downloadPeerTube-c3b21b68b55fa5cb0ee7a23e4316b5466a0448f0.tar.gz
PeerTube-c3b21b68b55fa5cb0ee7a23e4316b5466a0448f0.tar.zst
PeerTube-c3b21b68b55fa5cb0ee7a23e4316b5466a0448f0.zip
Delete completed/failed jobs directly from bullmq
Diffstat (limited to 'server/lib/schedulers')
-rw-r--r--server/lib/schedulers/remove-old-jobs-scheduler.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/schedulers/remove-old-jobs-scheduler.ts b/server/lib/schedulers/remove-old-jobs-scheduler.ts
index 879846999..6b05ea144 100644
--- a/server/lib/schedulers/remove-old-jobs-scheduler.ts
+++ b/server/lib/schedulers/remove-old-jobs-scheduler.ts
@@ -4,6 +4,8 @@ import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
4import { JobQueue } from '../job-queue' 4import { JobQueue } from '../job-queue'
5import { AbstractScheduler } from './abstract-scheduler' 5import { AbstractScheduler } from './abstract-scheduler'
6 6
7// FIXME: delete this scheduler in a few versions (introduced in 5.0)
8// We introduced job removal directly using bullmq option but we still need to delete old jobs
7export class RemoveOldJobsScheduler extends AbstractScheduler { 9export class RemoveOldJobsScheduler extends AbstractScheduler {
8 10
9 private static instance: AbstractScheduler 11 private static instance: AbstractScheduler