forked from goodboy/tractor
1
0
Fork 0

Add note about intermediary-actor in debug issue

prompt_on_ctrlc
Tyler Goodlet 2023-01-25 18:30:18 -05:00
parent 588b7ca7bf
commit 5ed62c5c54
1 changed files with 7 additions and 0 deletions

View File

@ -457,6 +457,13 @@ async def trio_proc(
await proc.wait() await proc.wait()
if is_root_process(): if is_root_process():
# TODO: solve the following issue where we need
# to do a similar wait like this but in an
# "intermediary" parent actor that itself isn't
# in debug but has a child that is, and we need
# to hold off on relaying SIGINT until that child
# is complete.
# https://github.com/goodboy/tractor/issues/320
await maybe_wait_for_debugger( await maybe_wait_for_debugger(
child_in_debug=_runtime_vars.get( child_in_debug=_runtime_vars.get(
'_debug_mode', False), '_debug_mode', False),