This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
magic-app/celworker.py
2020-07-05 01:21:17 +02:00

10 lines
253 B
Python

"""Bootstrap the application for Celery."""
from os import environ
from magic_app.app import celery, create_app # noqa
from magic_app.config import CONFIG
config = CONFIG[environ["FLASK_ENV"]]
app = create_app(config=config)
app.app_context().push()