superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [celery] Using preferred configuration proceedure (#5726)
Date Mon, 27 Aug 2018 03:04:36 GMT
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 <4567245+john-bodley@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
 
 


Mime
View raw message