How can I set the message TTL ( Not the Queue ) from either the
I'm running RabbitMQ 3.x, Symfony 2.1.x and the RabbitMqBundle.
What I've tried:
I set the message properties to 'x-message-ttl' => 3600000
. In the RabbitMQ config it looks like this:
{
"name": "blah_queue",
"vhost": "foobar",
"durable": true,
"auto_delete": false,
"arguments": {
'x-message-ttl' => 3600000
}
},
this is the error I get:
PRECONDITION_FAILED - inequivalent arg 'x-message-ttl'for queue
I tried setting in the config.yml ( symfony / https://github.com/videlalvaro/RabbitMqBundle / README )
this gives a bunch of errors with the AMQP library the bundle uses.
I tried modifying the AMQP library itself to allow the x-message-ttl
message properties and I get an exception Error sending data
.
Has anyone set the Message TTL using the RabbitMQBundle?
queue_options: {name: 'blah_queue', arguments: {'x-message-ttl' => 3600000}}
queue_options: {name: 'blah_queue', arguments: {'x-message-ttl' : ['I', '3600000']}}
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