diff --git a/core/server/ghost-server.js b/core/server/ghost-server.js index caac7faf4c..0ef37aae12 100644 --- a/core/server/ghost-server.js +++ b/core/server/ghost-server.js @@ -126,7 +126,20 @@ class GhostServer { // Output job queue length every 5 seconds setInterval(() => { logging.warn(`${jobService.queue.length()} jobs in the queue. Idle: ${jobService.queue.idle()}`); - logging.warn(`${Object.keys(jobService.bree.workers).length} workers registered. Scheduled jobs: ${Object.keys(jobService.bree.intervals).length}`); + + const runningScheduledjobs = Object.keys(jobService.bree.workers); + if (Object.keys(jobService.bree.workers).length) { + logging.warn(`${Object.keys(jobService.bree.workers).length} jobs running: ${runningScheduledjobs}`); + } + + const scheduledJobs = Object.keys(jobService.bree.intervals); + if (Object.keys(jobService.bree.intervals).length) { + logging.warn(`${Object.keys(jobService.bree.intervals).length} scheduled jobs: ${scheduledJobs}`); + } + + if (runningScheduledjobs.length === 0 && scheduledJobs.length === 0) { + logging.warn('No scheduled or running jobs'); + } }, 5000); }