maybe_cancel_the_cancel_
Tyler Goodlet 2022-01-21 12:16:08 -05:00
parent 9650055519
commit 41296448e8
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
Adjust the `tractor._spawn.soft_wait()` strategy to avoid sending an
actor cancel request (via `Portal.cancel_actor()`) if either the child
process is detected as having terminated or the IPC channel is detected
to be closed.
This ensures (even) more deterministic inter-actor cancellation by
avoiding the timeout condition where possible when a whild never
sucessfully spawned, crashed, or became un-contactable over IPC.