mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[celery] Using preferred configuration proceedure (#5726)
This commit is contained in:
parent
f83ea233c7
commit
52b99dff78
@ -710,7 +710,8 @@ def get_celery_app(config):
|
|||||||
global _celery_app
|
global _celery_app
|
||||||
if _celery_app:
|
if _celery_app:
|
||||||
return _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
|
return _celery_app
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user