kue icon indicating copy to clipboard operation
kue copied to clipboard

job on 'complete' event doesn't emit

Open contextlimit opened this issue 14 years ago • 4 comments

cd examples -> node events.js. "Job complete" is never emit. Experiencing the same in custom app.

Changing this line to job.emit('complete'); works: https://github.com/LearnBoost/kue/blob/master/lib/queue/worker.js#L131

However, I gather that line does something special.

contextlimit avatar Feb 25 '12 07:02 contextlimit

I have also same issue, but your work around is not working too.

kochizufan avatar Aug 26 '12 20:08 kochizufan

I have the same problem.

It happens intermittently.

Makes it into events.js -> exports.emit but never fires exports.onMessage

tdfairbrother avatar Oct 10 '12 00:10 tdfairbrother

i'd definitely recommend the pubsub events over job specifics if you need something more reliable, if the process dies you'll obviously never have access to those objects again

tj avatar Oct 19 '12 19:10 tj

running kue/examples/events.js job complete event's are successfully fired

@drudge please close

bulkan avatar Jun 27 '13 00:06 bulkan