@celery.task
def send_async_email(msg):
    app = create_app('default' or 'development')
with app.app_context():
    pass
Running Celery worker inside an app context still raises "working outside of app context" error in task