-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DRAFT] interrupt and sigterm before sigkill kernel.
This implements the discussion in #18, to try to more progressively stop the kernels. 1) this always sends and interrupt before any shutdown requests; goal being to stop any processing happening that may block any event loop. 2) sends the shutdown_requests (no changes here). 3) wait 50% of the wait time, and sends a "terminate" in quote as this depends on your platform/os, and the type of kernel you have. - if subprocess.Popen calls `.terminate()` which is SIGTERM on unix; the same as `.kill()` on windows; if not a Popen instance send SIGTERM. 4) wait the other 50% and kills, (same as before). This does this both on the sync client and async client. TBD: write tests and docs; and test more properly;
- Loading branch information
Showing
1 changed file
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters