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
Regular users won't use watch, so these expected errors could confuse them. I think we should handle this somehow.
My idea is to simply write a retry loop for asyncio debugging tools attaching and maybe let the user control the number of retries to attempt through a CLI flag.
Another idea could be to hint the user of the asyncio debug tools that errors can happen and that it is not a bug, and they could retry themselves.
Bug report
Bug description:
Tachyon profiler collections always have some error rate.
My intuition is that the same applies to the asyncio debugging tools -- they can try to attach in a wrong moment.
I've played with
cpython/Lib/profiling/sampling/sample.py
Lines 120 to 123 in 837166f
and the errors look very similar.
They are especially visible when running the asyncio debugging tools on asyncio programs that use thread delegation:
Screen.Recording.2026-02-16.at.16.22.21.mov
(Code used)
Regular users won't use
watch, so these expected errors could confuse them. I think we should handle this somehow.My idea is to simply write a retry loop for asyncio debugging tools attaching and maybe let the user control the number of retries to attempt through a CLI flag.
Another idea could be to hint the user of the asyncio debug tools that errors can happen and that it is not a bug, and they could retry themselves.
cc @pablogsal
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, macOS
Linked PRs