如何清除芹菜队列中的任务

时间:2019-08-05 14:28:13

标签: rabbitmq celery

我正在尝试清除Rabbitmq /芹菜队列中的任务列表。

我使用了以下内容:

root@ip-10-150-115-164:/my-api# celery amqp queue.purge celery
-> connecting to amqp://guest:**@localhost:5672//.
-> connected.
ok. 0 messages deleted.

当队列中有12,000个以上时,为什么要删除0条消息?

sudo rabbitmqctl list_queues
Listing queues
celeryev.fdc87318-5013-465c-92be-e3081ed3c579   0
worker5@ip-10-150-115-164.celery.pidbox 0
celeryev.218186c8-49d3-4601-8237-3edcb17ca82a   0
celery  12485
worker1@ip-10-150-115-164.celery.pidbox 0
worker3@ip-10-150-115-164.celery.pidbox 0
worker4@ip-10-150-115-164.celery.pidbox 0
worker2@ip-10-150-115-164.celery.pidbox 0
celeryev.616cf756-77fb-48fc-aa3c-a9a53e909ba1   0
celeryev.29bf149e-592c-4f82-990a-1a72c2830bb2   0
celeryev.c35d971e-80b1-492f-a111-6be576f6c825   0

谢谢

0 个答案:

没有答案