forkqueue icon indicating copy to clipboard operation
forkqueue copied to clipboard

Worker ID

Open aaaristo opened this issue 12 years ago • 1 comments

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

aaaristo avatar May 05 '13 15:05 aaaristo

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.

andrewjstone avatar May 06 '13 21:05 andrewjstone