From 6fdc553adb23db216b44e425a85ea76bdf0a2a40 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Feb 2018 13:46:56 +0100 Subject: Don't fail on upload if we cannot generate thumbnail --- server/lib/schedulers/remove-old-jobs-scheduler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/lib/schedulers/remove-old-jobs-scheduler.ts') diff --git a/server/lib/schedulers/remove-old-jobs-scheduler.ts b/server/lib/schedulers/remove-old-jobs-scheduler.ts index 51fcf711e..0e8ad1554 100644 --- a/server/lib/schedulers/remove-old-jobs-scheduler.ts +++ b/server/lib/schedulers/remove-old-jobs-scheduler.ts @@ -1,3 +1,4 @@ +import { isTestInstance } from '../../helpers/core-utils' import { logger } from '../../helpers/logger' import { JobQueue } from '../job-queue' import { AbstractScheduler } from './abstract-scheduler' @@ -11,7 +12,7 @@ export class RemoveOldJobsScheduler extends AbstractScheduler { } async execute () { - logger.info('Removing old jobs (scheduler).') + if (!isTestInstance()) logger.info('Removing old jobs (scheduler).') JobQueue.Instance.removeOldJobs() } -- cgit v1.2.3