I'm using Celery with RabbitMQ backend. How can I monitor and get the number of pending tasks? "celery events" and djcelery shows the running and completed tasks. Should I be monitoring RabbitMQ? If so how?
If you are using RabbitMq as broker, I recommend to use for that rabbitmqctl ( usually /usr/sbin/rabbitmqctl ). So command:
rabbitmqctl list_queues
Shows you number of tasks in queues. Other solution is installing rabbitmq-plugins: management plugin. You can do it with:
rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
Your rabbitmq-server will provide webagent where you can easily manage your rabbit-server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With