Skip to content

v6.0.9

Compare
Choose a tag to compare
@evantahler evantahler released this 16 Feb 23:56

Emit Duration (#320)

We now emit duration for success and failure events:

 worker.on("success", (queue, job, result, duration) => {
    console.log(
      `job success ${queue} ${JSON.stringify(job)} >> ${result} (${duration}ms)`
    );
  });

  worker.on("failure", (queue, job, failure, duration) => {
    console.log(
      `job failure ${queue} ${JSON.stringify(
        job
      )} >> ${failure} (${duration}ms)`
    );
  });