]>
Commit | Line | Data |
---|---|---|
94a5ff8a C |
1 | import { JobQueue } from '../job-queue' |
2 | import { AbstractScheduler } from './abstract-scheduler' | |
3 | ||
4 | export class RemoveOldJobsScheduler extends AbstractScheduler { | |
5 | ||
6 | private static instance: AbstractScheduler | |
7 | ||
8 | private constructor () { | |
9 | super() | |
10 | } | |
11 | ||
12 | async execute () { | |
13 | JobQueue.Instance.removeOldJobs() | |
14 | } | |
15 | ||
16 | static get Instance () { | |
17 | return this.instance || (this.instance = new this()) | |
18 | } | |
19 | } |