LearnBoost/kue — Issue #98: jobs removed from event Job map prematurely when attempts > 1 
Author: bbn
Created: 2012-01-25 19:16:37+00:00
State: open

line 70 of events.js :

if ('progress' != msg.event) delete exports.jobs[job.id];

The problem with this is that if you have a task that is set up to attempt more than once. If the task fails it emits a failure message, and then when it gets to this line it is removed from the event Job map. That means that further events are not emitted... so for instance if the job completes successfully on the second attempt, its "complete" event does not fire.