Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worker ID #1

Open
aaaristo opened this issue May 5, 2013 · 1 comment
Open

Worker ID #1

aaaristo opened this issue May 5, 2013 · 1 comment

Comments

@aaaristo
Copy link

aaaristo commented May 5, 2013

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

@andrewjstone
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants