anyio
anyio copied to clipboard
Tips for debugging deadlock/stalemate situations?
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.