Add logs for scheduler
This commit is contained in:
parent
0a8ae68459
commit
ea99d15fe8
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,8 @@ export class BadActorFollowScheduler extends AbstractScheduler {
|
|||
}
|
||||
|
||||
async execute () {
|
||||
logger.info('Removing bad actor follows (scheduler).')
|
||||
|
||||
try {
|
||||
await ActorFollowModel.removeBadActorFollows()
|
||||
} catch (err) {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { logger } from '../../helpers/logger'
|
||||
import { JobQueue } from '../job-queue'
|
||||
import { AbstractScheduler } from './abstract-scheduler'
|
||||
|
||||
|
@ -10,6 +11,8 @@ export class RemoveOldJobsScheduler extends AbstractScheduler {
|
|||
}
|
||||
|
||||
async execute () {
|
||||
logger.info('Removing old jobs (scheduler).')
|
||||
|
||||
JobQueue.Instance.removeOldJobs()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue