Replies: 1 comment
-
For anyone in a similar situation, py-spy might be useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to find out which tasks is in a waiting state? (for something that has not yet arrived to it)?.
I have found
anyio.get_running_tasks()
, but that doesn't say much about which task is blocking which.How to proceed from here? I'm kind of lost. I can't use the debugger because of the asynchronous nature of the program. I could start spreading print() statements and start gathering info from there, but I reserve that as a last option, hoping there is a better way.
Note that in my program I have several thousand streams producing and consuming tasks.
Beta Was this translation helpful? Give feedback.
All reactions