Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #99 from john-bodley/john-bodley-cherry-pick-5726
Browse files Browse the repository at this point in the history
[celery] Using preferred configuration proceedure (apache#5726)
  • Loading branch information
john-bodley authored Aug 27, 2018
2 parents a40656a + 8b3dd9b commit f06365d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ def get_celery_app(config):
global _celery_app
if _celery_app:
return _celery_app
_celery_app = celery.Celery(config_source=config.get('CELERY_CONFIG'))
_celery_app = celery.Celery()
_celery_app.config_from_object(config.get('CELERY_CONFIG'))
return _celery_app


Expand Down

0 comments on commit f06365d

Please sign in to comment.