#36714: Async signals lose ContextVar state due to use of asyncio.gather
----------------------------------+------------------------------------
Reporter: Mykhailo Havelia | Owner: (none)
Type: Bug | Status: new
Component: HTTP handling | Version: dev
Severity: Normal | Resolution:
Keywords: asyncio, signals | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Comment (by Mykhailo Havelia):
Replying to [comment:22 Carlton Gibson]:
> Can we not (at least) dispatch the async handlers concurrently, and then
handle the synchronous ones sequentially
Yes, I've thought about it. It should be fairly easy to implement and
maintain going forward 😌. So my plan is to:
- Rewrite the `asend` method to run all async handlers in parallel first,
and then execute sync handlers afterward.
- Share the same context across all handlers.
--
Ticket URL: <https://code.djangoproject.com/ticket/36714#comment:23>
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/0107019ae3e34764-68cda264-3c79-437c-8fc5-4d87fbd59c3f-000000%40eu-central-1.amazonses.com.