Can worker know its own worker id?
Created by: hados99
Description
- is it possible worker knows own unique worker id? especially when I execute worker (queue.process) with concurrency
Minimal, Working Test code to reproduce the issue.
(An easy to reproduce test case will dramatically decrease the resolution time.)
- example
queue.process(3, (job, done) => {
// I want to know my unique worker id or something in here
console.log(`woker : ${job.id}, ${process.pid}`);
job.progress(40);
done();
});
Bull version
3.6.0