Skip to content

Commit

Permalink
[celery] Using preferred configuration proceedure (#5726)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Aug 27, 2018
1 parent f83ea23 commit 52b99df
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 @@ -710,7 +710,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 52b99df

Please sign in to comment.