RabbitMQ queue has 'state' field in API response but still use idle_since to show queue state

225 views
Skip to first unread message

TRy Again

unread,
Jun 6, 2019, 11:43:42 PM6/6/19
to rabbitmq-users
Hi there,

I see in API /api/queues?page=1&page_size=10 of RabbitMQ Management has field 'state' but don't know why still use idle_since to determine queue state which may lead to confusing problem. Let say, 'state' shows 'running' but in GUI shows 'idle'.

Please check the images below and code at https://github.com/rabbitmq/rabbitmq-management/blob/master/priv/www/js/formatters.js#L553 for more details. Please help me know which is right state of the queue.

Screen Shot 2019-06-07 at 10.23.16 AM.png

Screen Shot 2019-06-07 at 10.40.18 AM.png




Daniil Fedotov

unread,
Jun 7, 2019, 10:57:30 AM6/7/19
to rabbitmq-users
Hi,

The states shown in the management UI are different from the "state" field in the queue info.
The queue "state" field cannot have the "idle" value, for example.
From the internal API point of view the queue is "running" - it can accept messages, it's not stopped or blocked by the flow control. From the metrics point of view it's "idle", because there was no activity for some time. "Idle" queue is technically still running and it can do anything a "running" queue can do.
Reply all
Reply to author
Forward
0 new messages