#35245: Django freezes on async views with asycio.gather and an async ORM call
-------------------------------------+-------------------------------------
Reporter: Luis Grau | Owner: nobody
Martín Maldonado |
Type: Bug | Status: new
Component: Database | Version: 5.0
layer (models, ORM) |
Severity: Normal | Keywords: ORM, async, bug
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
This issue is very similar to this one:
[
https://code.djangoproject.com/ticket/34747#ticket]
However, there is only the necessary middleware:
{{{
MIDDLEWARE = [
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
]
}}}
Instead of putting here snippets, I have created a repo with a dockerfile,
docker-compose and minimum project that shows the problem
[
https://github.com/LuisGMM/django_bug]
Inside it you can do {{{docker-compose up}}} and access to
[
http://0.0.0.0:8000/endpoint/] to check the view with the problem. If the
lines in MyProvider are commented, it works.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35245>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.