1
0
Fork 0

Add logs for scheduler

This commit is contained in:
Chocobozzz 2018-02-27 11:08:59 +01:00
parent 0a8ae68459
commit ea99d15fe8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,8 @@ export class BadActorFollowScheduler extends AbstractScheduler {
}
async execute () {
logger.info('Removing bad actor follows (scheduler).')
try {
await ActorFollowModel.removeBadActorFollows()
} catch (err) {

View file

@ -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()
}