from app import init_celery app = init_celery() app.conf.imports = app.conf.imports + ("tasks",)
from app import init_celery celery = init_celery()
from app.extensions import celery from app import create_app from app import init_celery app = create_app() init_celery(celery, app)
import os from app import celery, create_app, init_celery """Instantiates a Celery server with the same context as the main app""" app = create_app(os.path.abspath("config.py")) app.app_context().push() celery = init_celery(app)
from app import create_app, celery, init_celery app = create_app() init_celery(app, celery)
from app import create_app, init_celery, celery_instance app = create_app() init_celery(celery_instance, app)