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
This commit is contained in:
Daniel Lockyer 2023-02-16 17:11:04 +01:00
parent cd3930d08e
commit 9a2d765c73
No known key found for this signature in database

View File

@ -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 {