1 import { logger } from '../../helpers/logger'
2 import { JobQueue } from '../job-queue'
3 import { AbstractScheduler } from './abstract-scheduler'
5 export class RemoveOldJobsScheduler extends AbstractScheduler {
7 private static instance: AbstractScheduler
9 private constructor () {
14 logger.info('Removing old jobs (scheduler).')
16 JobQueue.Instance.removeOldJobs()
19 static get Instance () {
20 return this.instance || (this.instance = new this())