From 52b99dff7838868ff721c8a22081092f24bee3ef Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Sun, 26 Aug 2018 20:04:33 -0700 Subject: [PATCH] [celery] Using preferred configuration proceedure (#5726) --- superset/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/utils.py b/superset/utils.py index b1583084ebbc8..483058e78f164 100644 --- a/superset/utils.py +++ b/superset/utils.py @@ -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