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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user