如果我没有在Python的芹菜中设置泳池选项,为什么队列会丢失?

发布于 2025-02-03 23:28:48 字数 338 浏览 3 评论 0原文

我只是在Python中设置并使用芹菜。但是芹菜队列似乎已经迷失了,所以我正在检查它。

例如,如果有一个过程可以完成任务A并将队列发送到任务B,则ab中的数据应该匹配,但通常不匹配。

在将队列传递到芹菜任务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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文