diff options
Diffstat (limited to 'server/lib/schedulers/remove-old-jobs-scheduler.ts')
-rw-r--r-- | server/lib/schedulers/remove-old-jobs-scheduler.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/schedulers/remove-old-jobs-scheduler.ts b/server/lib/schedulers/remove-old-jobs-scheduler.ts index add5677ac..51fcf711e 100644 --- a/server/lib/schedulers/remove-old-jobs-scheduler.ts +++ b/server/lib/schedulers/remove-old-jobs-scheduler.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { logger } from '../../helpers/logger' | ||
1 | import { JobQueue } from '../job-queue' | 2 | import { JobQueue } from '../job-queue' |
2 | import { AbstractScheduler } from './abstract-scheduler' | 3 | import { AbstractScheduler } from './abstract-scheduler' |
3 | 4 | ||
@@ -10,6 +11,8 @@ export class RemoveOldJobsScheduler extends AbstractScheduler { | |||
10 | } | 11 | } |
11 | 12 | ||
12 | async execute () { | 13 | async execute () { |
14 | logger.info('Removing old jobs (scheduler).') | ||
15 | |||
13 | JobQueue.Instance.removeOldJobs() | 16 | JobQueue.Instance.removeOldJobs() |
14 | } | 17 | } |
15 | 18 | ||