19

我让 Celery 与 RabbitMQ 代理一起运行。今天,我的 Celery 节点出现故障,它不执行任务,也不响应service celeryd stop命令。重复几次后,节点停止了,但在开始时我收到以下消息:

[WARNING/MainProcess] celery@nodename ready.
[WARNING/MainProcess] /home/ubuntu/virtualenv/project_1/local/lib/python2.7/site-packages/kombu/pidbox.py:73: UserWarning: A node named u'nodename' 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!

  warnings.warn(W_PIDBOX_IN_USE % {'hostname': self.hostname})

谁能建议如何解锁进程邮箱?

4

2 回答 2

41

从这里http://celery.readthedocs.org/en/latest/userguide/workers.html#starting-the-worker您可能需要唯一地命名每个节点。例子:

$ celery -A proj worker --loglevel=INFO --concurrency=10 -n worker1.%h

在主管逃生中使用%%h.

于 2014-10-17T17:27:37.813 回答
-3

我认为大日志文件或没有足够的可用空间是一个原因。删除后一切正常

于 2013-09-07T18:37:26.383 回答