forked from goodboy/tractor
1
0
Fork 0
tractor/tractor
Tyler Goodlet a2171c7e71 Cancel the `.cancel_actor()` request on proc death
Adjust the `soft_wait()` strategy to avoid sending needless cancel
requests if it is known that a child process is already terminated or
does so before the cancel request times out. This should be no slower
and should avoid needless waits on either closure-in-progress or already
closed channels.

Basic strategy is,
- request child actor to cancel
- if process termination is detected, cancel the cancel
- if the process is still alive after a cancel request timeout warn the
  user and yield back to the hard reap handling
2022-01-21 12:49:26 -05:00
..
testing Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
trionics Flip doc strings to my preferred format 2021-12-17 09:38:04 -05:00
__init__.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_actor.py Add a `Portal.cancel_actor()` test 2021-12-17 09:38:04 -05:00
_child.py Support asyncio actors with the trio spawner backend 2021-12-17 09:38:01 -05:00
_clustering.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_debug.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_discovery.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_entry.py More doc string style tweaks 2021-12-17 09:38:04 -05:00
_exceptions.py Re-wrap and raise `asyncio.CancelledError` 2021-12-17 09:38:04 -05:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_mp_fixup_main.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_portal.py Add an explicit messaging error for reporting an illegal context transaction 2021-12-16 19:59:10 -05:00
_root.py WIP redo asyncio async gen streaming 2021-12-17 09:38:04 -05:00
_spawn.py Cancel the `.cancel_actor()` request on proc death 2022-01-21 12:49:26 -05:00
_state.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_streaming.py Don't set `Context._error` to expected `ContextCancelled` 2021-12-16 19:59:10 -05:00
_supervise.py Fill out nursery docstring 2021-12-17 09:38:04 -05:00
log.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
msg.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
to_asyncio.py Add agpl header 2021-12-17 09:39:30 -05:00