Merge pull request #31439 from openedx/ashultz0/devstack-worker-transaction

fix: make devstack-with-worker behave like actual worker envs
This commit is contained in:
Andrew Shultz
2022-12-20 09:32:19 -05:00
committed by GitHub
2 changed files with 0 additions and 9 deletions

View File

@@ -20,8 +20,3 @@ from cms.envs.devstack import *
CELERY_ALWAYS_EAGER = False
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True
BROKER_URL = 'redis://:password@edx.devstack.redis:6379/'
# Disable transaction management because we are using a worker. Views
# that request a task and wait for the result will deadlock otherwise.
for database_name in DATABASES:
DATABASES[database_name]['ATOMIC_REQUESTS'] = False

View File

@@ -21,7 +21,3 @@ from lms.envs.devstack import *
CELERY_ALWAYS_EAGER = False
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True
BROKER_URL = 'redis://:password@edx.devstack.redis:6379/'
# Disable transaction management because we are using a worker. Views
# that request a task and wait for the result will deadlock otherwise.
for database_name in DATABASES:
DATABASES[database_name]['ATOMIC_REQUESTS'] = False