Skip to content

Commit

Permalink
feat: adds CELERY_BROKER_TRANSPORT_OPTIONS
Browse files Browse the repository at this point in the history
which can be configured from the lms/studio environment

(cherry picked from commit 3c1a43e)
  • Loading branch information
pomegranited committed Sep 9, 2021
1 parent 7cb1f2d commit 3019422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def get_env_setting(setting):
BROKER_TRANSPORT_OPTIONS = {
'fanout_patterns': True,
'fanout_prefix': True,
**ENV_TOKENS.get('CELERY_BROKER_TRANSPORT_OPTIONS', {})
}

# Message expiry time in seconds
Expand Down
1 change: 1 addition & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ def get_env_setting(setting):
BROKER_TRANSPORT_OPTIONS = {
'fanout_patterns': True,
'fanout_prefix': True,
**ENV_TOKENS.get('CELERY_BROKER_TRANSPORT_OPTIONS', {})
}

# Block Structures
Expand Down

0 comments on commit 3019422

Please sign in to comment.