Skip to content

Commit

Permalink
introduce worker.id
Browse files Browse the repository at this point in the history
  • Loading branch information
behrad committed Jun 1, 2014
1 parent 657fd45 commit 0dd922f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/kue.js
Expand Up @@ -217,6 +217,7 @@ Queue.prototype.process = function (type, n, fn) {

while (n--) {
var worker = new Worker(this, type).start(fn);
worker.id = [process.pid,type,self.workers.length+1].join('-');
worker.on('error', function (err) {
self.emit('error', err);
});
Expand Down

0 comments on commit 0dd922f

Please sign in to comment.