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/scripts/celworker.py
Luke Murphy a98c854ff8
All checks were successful
continuous-integration/drone/push Build is passing
Try and tuck away more files
2020-07-05 03:19:38 +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()