-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
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
Graceful shutdown doesn't shutdown at all #775
Comments
Is your shutdown callback getting called? (do you see 'Kue Shutdown' at console?) |
The entire code in the process.once block doesn't get called (sorry I implicitly implied that some gets called in my previous statement) - it doesn't shuts down at all. |
|
Thank you for the explanation, now I understand how it is suppoesed to be used. |
kue.shutdown(2000, function(err) {
console.log('Kue shutdown: ', err || '');
//process.exit(0); you should not need this line
}); |
Hello,
I have followed the documentation but I don't see to be able to exit the process with a graceful shutdown.
The code in the shutdown block never gets executed. Last line does but the process does not exit.
// if both buttons are pressed, disconnect:
if (left && right) {
process.once('SIGTERM', function(sig) {
kue.shutdown(5000, function(err) {
console.log('Kue shutdown: ', err || '');
process.exit(0);
});
});
tag.disconnect();
}
Any help is wildely appreciated.
thx
The text was updated successfully, but these errors were encountered: