Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 RedisQueue 作为从我的应用程序运行异步作业处理的简单方法。
但是,当工作人员尝试在烧瓶应用程序中运行作业时,它会抱怨在应用程序上下文之外运行,即working outside of application context
working outside of application context
def your_task(): with app.test_request_context(): #your code