这是一个创建于 1401 天前的主题,其中的信息可能已经有所发展或是发生改变。
由于一台 flask 服务器性能不够,计划再增加 3 台 flask 应用服务器,原来服务器上使用了 celery 异步队列,在 celery_worker 中都有关联 flask 的 app 上下文:
app.app_context().push()
现在把 flask 服务器数量扩充,这会导致 flask 的 app 上下文也横向扩展了,会造成 celery_worker 中队列任务冲突 /重复吗?
2 条回复 • 2020-12-22 09:23:58 +08:00
|
|
1
ebingtel 2020-12-22 08:48:25 +08:00
celery beat 是一个 应该没问题
|
|
|
2
Latin 2020-12-22 09:23:58 +08:00
celery once 了解一下
|