Skip to content

Commit

Permalink
Merge pull request #3909 from philpep/override-celery-imports
Browse files Browse the repository at this point in the history
Allow overriding celery list params
  • Loading branch information
smotornyuk committed Nov 9, 2017
2 parents 4979403 + ee248d2 commit 3198e62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/lib/celery_app.py
Expand Up @@ -63,10 +63,11 @@

try:
for key, value in config.items('app:celery'):
key = key.upper()
if key in LIST_PARAMS:
default_config[key.upper()] = value.split()
default_config.setdefault(key, []).extend(value.split())
else:
default_config[key.upper()] = value
default_config[key] = value
except ConfigParser.NoSectionError:
pass

Expand Down

0 comments on commit 3198e62

Please sign in to comment.