From cc174c49772f7e1f67a2dac6cb22d81055303f7f Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Sat, 16 May 2026 00:46:53 -0400 Subject: [PATCH] Fix worker/index.js: job.progress is a property not a function in BullMQ v3+ --- services/worker/src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/worker/src/index.js b/services/worker/src/index.js index 03cfb67..5c238d7 100644 --- a/services/worker/src/index.js +++ b/services/worker/src/index.js @@ -26,8 +26,9 @@ const createWorker = (queueName, handler) => { console.error(`[${queueName}] Job ${job.id} failed:`, err.message); }); - worker.on('progress', (job) => { - console.log(`[${queueName}] Job ${job.id} progress:`, job.progress()); + // job.progress is a property (the value set by updateProgress), not a function + worker.on('progress', (job, progress) => { + console.log(`[${queueName}] Job ${job.id} progress:`, progress); }); return worker;