gpt4 book ai didi

heroku 和 rabbitmq - 无法运行多个 worker dynos

转载 作者:行者123 更新时间:2023-12-01 14:46:03 26 4
gpt4 key购买 nike

我正在为 Heroku 使用 CloudAMPQ 插件。由于 RabbitMQ 的每个进程都需要一个唯一的节点名称,因此当我将 worker dynos 从 1 扩展到 2 或更多时,我遇到了警告:

 /app/.heroku/python/lib/python3.6/site-packages/kombu/pidbox.py:71: UserWarning: A node named coworker@fstrk.io is already using this process mailbox!

Maybe you forgot to shutdown the other node or did not do so properly?
Or if you meant to start multiple nodes on the same host please make sure
you give each node a unique node name!

我的 Procfile 行看起来像这样

 coworker: celery -l info -A getmybot worker -Q slack -c ${COWORKER_PROCESSES:-4} --hostname coworker@fstrk.io --without-gossip --without-mingle --without-heartbeat

我该怎么做?

最佳答案

尝试将 --hostname coworker@fstrk.io 更改为 --hostname coworker@%%h

官方文档中的更多详细信息: http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html

关于heroku 和 rabbitmq - 无法运行多个 worker dynos,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47551776/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com