<filename>src/tasks/celery_worker.py
from app import create_app


app = create_app()
app.app_context().push()

from tasks import celery

<filename>src/tasks/celery_worker.py
from app import create_app


app = create_app()
app.app_context().push()

from tasks import celery
