Integrated Celery startup / management / config with PillarServer.

This commit is contained in:
2017-06-01 16:15:44 +02:00
parent e7d268bde6
commit 5af54237b9
7 changed files with 41 additions and 29 deletions

View File

@@ -178,6 +178,4 @@ def worker(args):
# PyMongo client and reconnect after forking.
] + list(args)
from pillar.celery.celery_cfg import celery_cfg
celery_cfg.worker_main([argv0] + argvother)
current_app.celery.worker_main([argv0] + argvother)