forkqueue
forkqueue copied to clipboard
Worker ID
Would it be possible to add args here:
https://github.com/andrewjstone/forkqueue/blob/master/queue.js#L25
var worker = cp.fork(this.workerModule,[this.workers.length]);
so that the worker process can get his ID from progess.argv like this:
const ID= process.argv[2];
this would enable better logging:
console.log('builder['+ID+']: '+message);
Thanks, great job
I'm not actively working on this project at the moment, but it is in production use. If you give me a patch with a test I'd be happy to test and include it.