You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defformat_info(handle: Handle, include_stack: bool=False, stack_cut_duration: Optional[float] =None,
limit: Optional[int] =None, enable_profiling_tip: bool=True) ->str:
""" Returns the representation of a task executed by asyncio, with or without the stack. """
...
ifnotmain_stack_tracking_is_enabled():
stream=io.StringIO()
task.print_stack(limit=limit, file=stream) # <-- here
It looks like sometimes task.print_stack can crash with the task being investigated at the unfortunate moment. I think we should add a try/except block around the print_stack call to avoid it.
The text was updated successfully, but these errors were encountered:
Here:
It looks like sometimes
task.print_stack
can crash with the task being investigated at the unfortunate moment. I think we should add a try/except block around theprint_stack
call to avoid it.The text was updated successfully, but these errors were encountered: