-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadlock when using concurrency in async views #1828
Comments
The toolbar is sync only at this time. If you'd like to open a PR to call that out explicitly in the Readme and installation docs, that would be helpful. There was another idea to log a message or not fail too. If you can help, it'd be appreciated. |
@tim-schilling Something like this? #1829 How big of an undertaking would be to add async support? (Full or partial). Looking at these issues, I have no idea: https://github.com/jazzband/django-debug-toolbar/issues?q=is%3Aissue+project%3Ajazzband%2F9+is%3Aopen I'd be motivated to help, even with small contributions but am not familiar with the Toobar's internals (moderately familiar with Django internals, noob at Python async). Let me know if there are low hanging fruits to tackle. |
* Add note on lack of async support to Installation docs * Add note on lack of async support to the Readme #1828 (comment)
@salomvary Thank you for that PR and the offer to help. The project for async compatibility is here: https://github.com/orgs/jazzband/projects/9 The main thing that you can help with that doesn't require much effort on my part is implementing tests that the toolbar would need to pass to be considered "working". This is issue #1819 |
I guess it does not make sense to keep this issue open then. |
As I recently discovered, async or not, concurrent ORM queries are not yet a thing in Django, therefore this issue is even less of an issue in practice. |
Hi folks,
First of all thanks for maintaining this amazing project! I've recently started migrating an existing project to asynchronous views and noticed that the view gets deadlocked when tasks are executed concurrently and the Debug Toolbar is installed.
If no tasks run concurrently (ie. using a sequence of
await
s) or the Debug Toolbar is removed, everything seems fine.Below is an example that hangs forever on
await asyncio.gather
:I'm relatively new to Python
asyncio
and have therefore no idea what's going on. I see the ongoing async issues in this issue tracker but I am not sure what's the state of Django async support (or lack of it) is here. (Something that might be worth documenting on the Readme.)These are the dependencies in use:
I can share a minimal test project if someone wants to have a look.
The text was updated successfully, but these errors were encountered: