From 637b877a98dc15361946099e646b68aced79459f Mon Sep 17 00:00:00 2001 From: Lezek123 Date: Thu, 14 Nov 2024 12:31:08 +0100 Subject: [PATCH] More verbose logging --- src/services/syncProcessing/PriorityQueue.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/services/syncProcessing/PriorityQueue.ts b/src/services/syncProcessing/PriorityQueue.ts index d855812..c166fe4 100644 --- a/src/services/syncProcessing/PriorityQueue.ts +++ b/src/services/syncProcessing/PriorityQueue.ts @@ -191,7 +191,14 @@ class PriorityJobQueue< async recalculateJobsPriority({ channels }: DynamodbService) { await this.asyncLock.acquire(this.RECALCULATE_PRIORITY_LOCK_KEY, async () => { const jobs = await this.queue.getJobs(['prioritized']) - this.logger.verbose(`Recalculating job priorities (jobs: ${jobs.length})...`) + this.logger.verbose( + `Recalculating job priorities`, + { + prioritizedJobsCount: jobs.length, + processingCount: this.processingCount, + processingTasks: Array.from(this.processingTasks) + } + ) const jobsByChannelId = _(jobs) .groupBy((v) => v.data.channelId)