asgiref icon indicating copy to clipboard operation
asgiref copied to clipboard

False deadlock detection in case of exception in run_in_executor

Open namezys opened this issue 10 months ago • 0 comments

See issue #495

I suppose this problem can only affect developing/debugging because it should not happen in production. In my case, the executor was shut down unexpectedly, but I spent time to find the deadlock. Also, a real exception will be raised only one time, and you will get deadlock detection further, which is more confusing.

However, I have doubts about catching a cancelation error here like in awaiting. A quick review of PEPs didn't answer.

namezys avatar Feb 28 '25 11:02 namezys