如何查看RabbitMQ中排队的任务? [英] How can I view the enqueued tasks in RabbitMQ?

查看:134
本文介绍了如何查看RabbitMQ中排队的任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用RabbitMQ作为消息代理,而我的工作人员是Celery的任务.我正在尝试诊断一个问题,即我正在将任务排队到RabbitMQ,但Celery却没有接听.

I'm using RabbitMQ as my message broker and my workers are Celery tasks. I'm trying to diagnose an issue where I'm enqueue tasks to RabbitMQ but Celery doesn't pick then up.

有没有一种方法可以检查RabbitMQ中已排队的任务?我想查看它们的入队日期和时间,指定的任何ETA,参数和任务名称.

Is there a way I can check what tasks are enqueued in RabbitMQ? I'd like to see the date and time when they are enqueued, any ETA is specified, the arguments and the task name.

我无法在文档中找到此信息-也许我忽略了它-希望你们中的某些人可能知道检查任务队列的简便方法.谢谢.

I haven't been able to find this information in the docs — maybe I've overlooked it — and was hoping that some of you might know an easy way to inspect the task queue. Thanks.

推荐答案

您可以使用Flower实时监视任务.

You can use Flower to monitor tasks in real time.

https://github.com/mher/flower

还请检出RabbitMQ服务器状态的 rabbitmqclt 命令:

Check out also rabbitmqclt command which inspects RabbitMQ server status:

http://www.rabbitmq.com/man/rabbitmqctl.1.man.html

rabbitmqctl list_queues

这篇关于如何查看RabbitMQ中排队的任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆