#36281: Sync write in async code path
--------------------------------+--------------------------------------
Reporter: Brian Atkinson | Owner: (none)
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Comment (by Rayyan Khan):
I think you're right, the sync write in this async code path might cause
problems if the disk I/O is slow. Maybe we could wrap the body_file.write
call with sync_to_async to prevent blocking the event loop?
--
Ticket URL: <https://code.djangoproject.com/ticket/36281#comment:1>
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/01070195eacc3c9f-298e77d2-0bf9-4883-9796-e29cb785536b-000000%40eu-central-1.amazonses.com.