Always `.exception()` in `try_ship_error_to_remote()` on internal error

runtime_to_msgspec
Tyler Goodlet 2024-05-30 16:02:25 -04:00
parent 993281882b
commit fcd089c08f
1 changed files with 6 additions and 2 deletions

View File

@ -80,7 +80,6 @@ from tractor.msg.types import (
Yield,
)
if TYPE_CHECKING:
from ._runtime import Actor
@ -328,7 +327,6 @@ async def _errors_relayed_via_ipc(
f'|_{ctx}'
)
# ALWAYS try to ship RPC errors back to parent/caller task
if is_rpc:
@ -819,6 +817,12 @@ async def try_ship_error_to_remote(
# TODO: use `.msg.preetty_struct` for this!
f'{msg}\n'
)
except BaseException:
log.exception(
'Errored while attempting error shipment?'
)
__tracebackhide__: bool = False
raise
async def process_messages(