Merge pull request #31438 from openedx/ashultz0/devstack-worker-clear-cache

fix: update devstack with worker for cache and proper redis
This commit is contained in:
Andrew Shultz
2022-12-12 13:39:23 -05:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ from cms.envs.devstack import *
# Require a separate celery worker
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.

View File

@@ -19,6 +19,7 @@ from lms.envs.devstack import *
# Require a separate celery worker
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.