tractor/tractor
Tyler Goodlet e2dfd6e99d Always undo SIGINT overrides , cancel detached children
Ensure that even when `pdb` resumption methods are called during a crash
where `trio`'s runtime has already terminated (eg. `Event.set()` will
raise) we always revert our sigint handler to the original. Further
inside the handler if we hit a case where a child is in debug and
(thinks it) has the global pdb lock, if it has no IPC connection to
a parent, simply presume tty sync-coordination is now lost and cancel
the child immediately.
2022-07-27 11:40:02 -04:00
..
experimental Better idea: start a `tractor.experimental` subpkg 2022-01-29 14:03:55 -05:00
testing Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
trionics Type fix 2022-02-15 08:51:25 -05:00
__init__.py Add `tractor.query_actor()` an addr looker-upper 2022-04-13 07:50:42 -04:00
_actor.py Just warn on IPC breaks 2022-07-27 11:40:02 -04: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 Always undo SIGINT overrides , cancel detached children 2022-07-27 11:40:02 -04:00
_discovery.py Fix typing 2022-04-13 08:20:53 -04: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 Use `str` | `bytes` union for typing msg dump 2022-07-12 11:59:11 -04:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_portal.py Type annot updates 2022-07-27 11:40:02 -04:00
_root.py WIP redo asyncio async gen streaming 2021-12-17 09:38:04 -05:00
_spawn.py Fix one missing import/ref 2022-02-17 13:03:37 -05:00
_state.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_streaming.py Tolerate double `.remove()`s of stream on portal teardowns 2022-07-27 11:40:02 -04:00
_supervise.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
log.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
msg.py Slight doc string update 2022-01-30 12:21:41 -05:00
to_asyncio.py Log cancels with appropriate level 2022-07-27 11:40:02 -04:00