如果我没有在Python的芹菜中设置泳池选项,为什么队列会丢失?
我只是在Python中设置并使用芹菜。但是芹菜队列似乎已经迷失了,所以我正在检查它。
例如,如果有一个过程可以完成任务A
并将队列发送到任务B
,则a
和b中的数据
应该匹配,但通常不匹配。
在将队列传递到芹菜任务B
的过程中,它可能会丢失。
当我设置' - pool = solo'
选项时,什么都不会丢失,但是处理速度似乎很慢。
以前,没有设置与'pool''
有关的选项。
我可以知道这样做的原因是什么?
I am simply setting up and using celery in python. But the celery queue seems to be getting lost, so I'm checking it.
For example, if there is a process that finishes task A
and sends a queue to task B
, the data in A
and B
should match, but it often doesn't match.
It was probably lost in the process of queue being delivered to the celery task B
.
When I set the '--pool=solo'
option, nothing was lost, but the processing speed seems to be slow.
Previously, no options related to 'pool'
were set.
May I know what might be the reason for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论