kue
kue copied to clipboard
Remove .process listeners
This is more like a question than an issue, but i'd like to know what happens with the listeners (.process in particular) when no more messages get in the queue for a given message type. For example, lets say I set a listener like:
var kue = require('kue')
, queue = kue.createQueue();
queue.process('foo', function(job, done){
// Do something with the job
});
Is there a way to tell kue to stop (not temporarily pause) processing a given message type, so any memory allocated to that would be freed?
Something like:
var kue = require('kue')
, queue = kue.createQueue();
queue.stopProcessing('foo');
Thanks a lot!
*bump