-
Notifications
You must be signed in to change notification settings - Fork 48
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 Worker Process exit on restart #31
Comments
Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey). It should be possible to do this in zprocess I think. I recently did some work on another project (autoscrub) which relies on managing and killing subprocesses (although not necessarily killing them cleanly). Things that I've found include:
Anyway, I would suggest we turn this into a zprocess issue as I think it can probably be mainly solved on that side, and then we can update BLACS to use the improved zprocess API. |
Original comment by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).
Your probably right that solving this in zprocess is a better solution. I'll open a issue there. I think we should keep this issue open anyway as others might run into the same problems I had. |
Original report (archived issue) by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).
Currently if one restarts a Tab the worker process is immediately terminated. This can leave things in a bad state. In particular I've been having problems with locks not being released. It would be nice if there was a attempt to call the
shutdown()
function of the workers before terminating them.I already tried to implement this on a per worker basis with python's signal library, but under windows there is no
signal.SIGTERM
so that didn't work.The text was updated successfully, but these errors were encountered: