We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems calling queue.shutdown() when more that one queue exists causes an error:
queue.shutdown()
Error: Shutdown already in progress
See example below:
process.stdin.resume(); const kue = require('kue'); let queue = kue.createQueue({ redis: 'redis://localhost:6380' }); queue.process('my-event', (job, done) => { console.info(job.data); done(); }); //_________________________________________________________________________________________________ let queue2 = kue.createQueue({ redis: 'redis://localhost:6380' }); queue2.process('my-other-event', (job, done) => { console.info(job.data); done(); }); //_________________________________________________________________________________________________ let job = queue .create('my-event', {foo: 'bar'}) .removeOnComplete(true) .save(); setTimeout(() => { queue.shutdown(0, (err) => { if (err) { return console.error(err); } console.info('queue shutdown'); }); }, 5000); let job2 = queue2 .create('my-other-event', {foo: 'bar'}) .removeOnComplete(true) .save(); setTimeout(() => { queue2.shutdown(0, (err) => { if (err) { return console.error(err); } console.info('queue2 shutdown'); }); }, 5000);
While I am grateful for OS contribution, there is so much critical stuff that in undocumented in this project
The text was updated successfully, but these errors were encountered:
shutdown
No branches or pull requests
Seems calling
queue.shutdown()
when more that one queue exists causes an error:Error: Shutdown already in progress
See example below:
While I am grateful for OS contribution, there is so much critical stuff that in undocumented in this project
The text was updated successfully, but these errors were encountered: