You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2018/08/27 03:04:36 UTC
[incubator-superset] branch master updated: [celery] Using
preferred configuration proceedure (#5726)
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 52b99df [celery] Using preferred configuration proceedure (#5726)
52b99df is described below
commit 52b99dff7838868ff721c8a22081092f24bee3ef
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Sun Aug 26 20:04:33 2018 -0700
[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 b158308..483058e 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