-
Notifications
You must be signed in to change notification settings - Fork 171
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
Supervisor can kill the main process, but not the scheduler, web server, and xmpp server #181
Comments
Hey @sivy , Thanks for your patience with my slow replies here. My knowledge of supervisor is 4 years old and minimal at that, so I'm not much help in that department. That's very strange behavior though. Maybe supervisor can send a more kind kill event (similar to the keyboard interrupt/etc?) It sounds (based on zero knowledge) that supervisor is somehow hard-killing the main thread at a really low level, and not giving it time to clean up. Python's supposed to take care of this, but strange things can happen. Not sure how much that helps - I'm happy to share what I know to help you get it solved! |
Solved it! Supervisor has an option for |
Glad to hear it! :) |
Late comment but this might add valuable information; Unlike SIGINT, looks like python does not have a default signal handler for SIGTERM. This can be observed by inspection using the interpreter v2.7.9;
--EDIT--
Cheers |
@pepedocs nice catch on that - any interest in a PR that handles both |
@skoczen I will find time to provide a PR for this. Meanwhile, anyone feel free to provide a PR. |
@pepedocs now that I'm working on it, I'm realizing that this may also bundle really nicely into the 1.0 abstractions - please ping if you're digging into it so we can coordinate! |
Noting that this is on the list for the #258 release - closing and tracking there! |
Running Will under supervisor, with the following config:
The problem I'm seeing is that starting Will under supervisor works fine, it starts 4 processes (main and the scheduler, web server, and xmpp server). But when using
supervisorctl stop will
, it kills the main process but leaves the subprocesses running (and running as the root user, weirdly).Any tips on how to run will with supervisor properly?
The text was updated successfully, but these errors were encountered: