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

10 lines
253 B
Python
Raw Normal View History

2020-07-04 11:12:31 +00:00
"""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"]]
2020-07-04 11:12:31 +00:00
app = create_app(config=config)
app.app_context().push()