Skip to content

Commit

Permalink
minor: display message when dummyWorker completes
Browse files Browse the repository at this point in the history
  • Loading branch information
lewebsimple committed Nov 16, 2023
1 parent bc857cf commit 20e1904
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jobs/server/utils/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ export const dummyWorker = new Worker<DummyJobData, DummyJobReturn>(
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);
});

0 comments on commit 20e1904

Please sign in to comment.