-
Notifications
You must be signed in to change notification settings - Fork 7
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
handle keyboard interrupts #37
Comments
A quick internet search suggests that we could wrap any major loops in Try Excepts where the exception to handle is
|
The above suggestion is not quite what is desired. We want to have looper send a weak kill signal to the subprocess that it has spawned (e.g. the pipeline). PyPiper actually currently has a way of sending a weak kill signal (SIGTERM) and waiting a few seconds before sending the SIGKILL to the pipeline. |
Ok, I've lifted some of the code from PyPiper and now have this working in Looper with simple testing. |
excellent! |
when proceeding under local compute mode, looper should more gracefully handle keyboard interrupts, passing them on the to command it was running and allowing that command a few seconds to shut itself down before terminating.
The text was updated successfully, but these errors were encountered: