How to check RabbitMQ queues TTL argument before RabbitMQ server starts #777
-
|
I have a custom script written in bash language. That script will run before CMD ["rabbitmq-server"] is called inside a custom RabbitMQ image container. Is it possible to check all the queues whether they got TTL configured before RabbitMQ server starts? If yes, which command can I use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@joe-agent A queue TTL argument on a queue can either come from a policy or an optional queue argument. There is no way to know if any messages in a queue might have TTL.
|
Beta Was this translation helpful? Give feedback.
@joe-agent
rabbitmqadmin queues list,rabbitmqadmin policies list,rabbitmq-diagnostics list_queues,rabbitmq-diagnostics list_policies.A queue TTL argument on a queue can either come from a policy or an optional queue argument.
There is no way to know if any messages in a queue might have TTL.
rabbitmqadminprovides multiple additional commands for policies, e.g. listing policies that match a specific object (a specific queue, stream, exchange), seerabbitmqadmin policies helpand the doc guide.