Skip to content

Worker ID #1

Description

@aaaristo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions