当我运行celerybeat服务时,我收到了大量收到的任务:
[2015-07-31 11:15:46,593: INFO/MainProcess] Received task: tasks2.energy[89544]
[2015-07-31 11:15:46,594: INFO/MainProcess] Received task: tasks2.energy[97083]
[2015-07-31 11:15:46,594: INFO/MainProcess] Received task: tasks2.energy[3d476]
其他帖子曾说要清除任何队列。但是,我一直遇到错误,例如标题中的错误。这是引用的帖子: Delete all the queues from RabbitMQ?
我运行rabbitmqctl stop_app
,然后我
DIAGNOSTICS
===========
attempted to contact: [rabbit@localhost]
rabbit@localhost:
* connected to epmd (port 4369) on localhost
* epmd reports: node 'rabbit' not running at all
other nodes on localhost: ['rabbitmq-cli-16558']
* suggestion: start the node
current node details:
- node name: 'rabbitmq-cli-16558@Pete_Zahut's-MacBook-Pro'
- home dir: /var/root
- cookie hash: Pete Zahut
当我运行rabbitmqadmin list queues name
时,我得到了
Could not connect: [Errno 61] Connection refused
答案 0 :(得分:0)
Celery --purge选项解决了这个问题!