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
247 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["ENV"]]
app = create_app(config=config)
app.app_context().push()