From 9a2d765c733761e2c5b9c588c66a9b28b6e85e9b Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 16 Feb 2023 17:11:04 +0100 Subject: [PATCH] Added one-off job name and current queue length into log line - this makes it easier to know what jobs are being scheduled and what the current queue length is --- ghost/job-manager/lib/job-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/job-manager/lib/job-manager.js b/ghost/job-manager/lib/job-manager.js index 2f98cf892c..e9a6d93a84 100644 --- a/ghost/job-manager/lib/job-manager.js +++ b/ghost/job-manager/lib/job-manager.js @@ -209,7 +209,7 @@ class JobManager { this.bree.add(breeJob); return this.bree.start(name); } else { - logging.info('Adding one off inline job to the queue'); + logging.info(`Adding one-off job to queue with current length = ${this.queue.length()} called '${name || 'anonymous'}'`); this.queue.push(async () => { try {