forked from goodboy/tractor
Log error
parent
25c19b9274
commit
0bac1f3021
|
@ -94,6 +94,8 @@ async def run_task(
|
||||||
"""
|
"""
|
||||||
nonlocal err
|
nonlocal err
|
||||||
err = task.exception()
|
err = task.exception()
|
||||||
|
if err:
|
||||||
|
log.exception("asyncio task errorred:")
|
||||||
cancel_scope.cancel()
|
cancel_scope.cancel()
|
||||||
|
|
||||||
task.add_done_callback(cancel_trio)
|
task.add_done_callback(cancel_trio)
|
||||||
|
|
Loading…
Reference in New Issue