Skip to content

Commit

Permalink
Merge pull request openedx#31438 from openedx/ashultz0/devstack-worke…
Browse files Browse the repository at this point in the history
…r-clear-cache

fix: update devstack with worker for cache and proper redis
  • Loading branch information
ashultz0 authored Dec 12, 2022
2 parents 35b3eac + 569403f commit ceab37b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cms/envs/devstack_with_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

# Require a separate celery worker
CELERY_ALWAYS_EAGER = False
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True
BROKER_URL = 'redis://:[email protected]:6379/'

# Disable transaction management because we are using a worker. Views
# that request a task and wait for the result will deadlock otherwise.
Expand Down
1 change: 1 addition & 0 deletions lms/envs/devstack_with_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# Require a separate celery worker
CELERY_ALWAYS_EAGER = False
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True
BROKER_URL = 'redis://:[email protected]:6379/'
# Disable transaction management because we are using a worker. Views
# that request a task and wait for the result will deadlock otherwise.
Expand Down

0 comments on commit ceab37b

Please sign in to comment.