#36863: Under WSGI, multiple calls to asgiref.sync.async_to_sync within the same
request do not share the same event loop.
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Vishy
Type: | Algo
Cleanup/optimization | Status: new
Component: HTTP handling | Version: 6.0
Severity: Normal | Resolution:
Keywords: async, wsgi | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):
* stage: Unreviewed => Someday/Maybe
Comment:
I want to help you advance the django-async-backend, but I'm not certain
that it needs to support WSGI right now in order to advance. I'll leave a
comment on the [https://github.com/django/new-features/issues/7 new-
features repo issue] that tracks that work to get more input. I could be
not understanding the intended audience of testers. Can't we test this
with `daphne`'s runserver?
About why it was designed this way, I did find a reference in the
[https://github.com/django/deps/blob/main/accepted/0009-async.rst#high-
level-summary async DEP] about the intended final design:
> WSGI mode will run a single event loop around each Django call to make
the async handling layer compatible with a synchronous server.
So that supports the idea that we would eventually get around to your
proposal, but since DEP 0009 there have been other conversations to the
effect of, "aren't we basically done except for the async database
backend." And if that's ASGI-only for now, that might be enough?
I can check my understanding with the Steering Council early next week.
Setting Someday/Maybe until then.
--
Ticket URL: <https://code.djangoproject.com/ticket/36863#comment:14>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019c0fbc1a33-b6191c33-3d21-4642-8865-3e0af073ad56-000000%40eu-central-1.amazonses.com.