Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Task #8975

Task #8488: [EPIC] Upgrade to django 3.2

Provide environment variables to permit Django ORM to work in an async context

Added by dalley 28 days ago. Updated 22 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

We will need to have provide for the worker processes the environment variable DJANGO_ALLOW_ASYNC_UNSAFE

https://docs.djangoproject.com/en/3.1/topics/async/#envvar-DJANGO_ALLOW_ASYNC_UNSAFE

Despite the warnings, we've tried to be careful about our usage of the ORM so that it remains safe within async code (not sharing querysets between coroutines), so it should be safe. In any case, it's just re-enabling what we've been doing for a long time.

At some point when Django introduces proper async ORM support we will definitely want to re-architect to take advantage of that.

Associated revisions

Revision 7af86d5f View on GitHub
Added by dalley 24 days ago

Add environment variables for preliminary Django 3.0+ compat

closes: #8975 https://pulp.plan.io/issues/8975

History

#1 Updated by dalley 28 days ago

  • Subject changed from Provide environment variables to permit Django async to work in an async context to Provide environment variables to permit Django ORM to work in an async context

#2 Updated by dalley 25 days ago

  • Status changed from NEW to POST
  • Assignee set to dalley
  • Sprint/Milestone set to 3.14.0

#4 Updated by dalley 25 days ago

  • Sprint/Milestone deleted (3.14.0)

#5 Updated by dalley 25 days ago

  • Parent task changed from #8822 to #8488

#6 Updated by dalley 24 days ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#7 Updated by pulpbot 22 days ago

  • Sprint/Milestone set to 3.14.0

#8 Updated by pulpbot 22 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF