-
Notifications
You must be signed in to change notification settings - Fork 352
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
Unable to kill running processes #924
Comments
I haven't delved into how devenv manages processes, but whatever the process manager is should likely be configured to try SIGTERM first, then SIGKILL if the process doesn't die after some number of seconds. But that's a belt and suspenders thing and it will always likely be best to try to fix whatever is trying-to-die to handle SIGTERM properly. EDIT: after reading the OP more carefully, I see that it's actually probably the process manager itself that is failing here. Yikes. |
Maybe we should switch to https://github.com/F1bonacc1/process-compose by default |
Bit biased but heavy +1 to that. I would also recommend an eager-evaluation strategy to the process-compose.yml file along with it. This avoids the costly 'devenv up' nix eval penalty for the most common use-cases. |
process-compose looks ok (although, at the moment, the "settings.tui" switch is broken; it always starts with the TUI). FWIW, one thing I'd like to see from whatever proc manager we use as default is a way to use a UNIX domain socket instead of an HTTP port for client/server communication, to make it possible to have more than one project running at a time without needing to remember to change the port. |
I was incorrect, it works. I was just putting the flag in the wrong place. |
My complaint about honcho not stopping its subprocesses while running devenv test is also wrong. This happens with hivemind, overmind, and process-compose too, I think it's some sort of race condition in cli.py. |
Fixed in #934 |
Describe the bug
Attempting to kill running processes with ctrl-c results in an exception from Python:
A second attempt to ctrl-c tells the user the expected PID file does not exist:
At this point you're stuck and have to
kill -9
the process.To reproduce
flake.lock
Version
The text was updated successfully, but these errors were encountered: