From 20e19042b855dfce624e883b309a09cd687a3243 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Thu, 16 Nov 2023 11:58:32 -0500 Subject: [PATCH] minor: display message when dummyWorker completes --- jobs/server/utils/dummy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jobs/server/utils/dummy.ts b/jobs/server/utils/dummy.ts index e8db9a2..5009462 100644 --- a/jobs/server/utils/dummy.ts +++ b/jobs/server/utils/dummy.ts @@ -23,3 +23,7 @@ export const dummyWorker = new Worker( dummyWorker.on("failed", async (job, error) => { logger.error(`Dummy job ${job?.name} failed with error: ${error.message}`); }); + +dummyWorker.on("completed", async (job) => { + logger.success(job.returnvalue.message); +});