#31793: Async management command support
-------------------------------------+-------------------------------------
Reporter: James Pic | Owner: nobody
Type: New feature | Status: closed
Component: Core (Management | Version: 3.0
commands) |
Severity: Normal | Resolution: wontfix
Keywords: assync | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
Hi James.
Thanks for the suggestion. I'm going to say wontfix here: there's no need
for ''async management commands''. If a management command needs to run
async code, for which, of course, there may be a need, `asyncio.run()` is
the perfect approach. (I see you note that as the workaround on the PR.)
It's just not worth any complexity to be able to handle top level async
def handle methods directly. '
I hope that makes sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/31793#comment:2>
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/062.d4eb5185179b6994de9f3c93b260d8e5%40djangoproject.com.