#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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018dd187d68c-6435b43e-faaa-4283-8d86-c10e3d3f1a41-000000%40eu-central-1.amazonses.com.