Skip to content

Commit

Permalink
trap online events without worker or task.
Browse files Browse the repository at this point in the history
  • Loading branch information
dshaw committed Nov 18, 2011
1 parent 7ef5a54 commit 16984ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Master.prototype.init = function () {
})

this.on('online', function(worker, task) {
if (!worker || !task) return console.log('incomplete online notification')
console.log(self.name + ': Task ', task.name, ' worker ', worker.pid, 'online')
worker.emit('start')
})
Expand Down

0 comments on commit 16984ea

Please sign in to comment.