What is the best way to continuously process items added to the queue? I see the following method
queue.process
https://github.com/Automattic/kue#processing-jobs
but this will process and return. Items added after this call are obviously not processed.
I thought to do:
queue.on('job enqueue', function(id, type){
queue.process('email', function (job, done) {
console.log('processing one: ' + job.id);
done(null);
});
});
But not sure if this fires multiple process methods ignoring the current queue status?
via Chev
No comments:
Post a Comment