[rabbitmq-discuss] why isn't my queue durable? (python client)
Brian Whitman
brian at echonest.com
Thu Apr 30 19:31:47 BST 2009
On Thu, Apr 30, 2009 at 12:18 PM, Tony Garnock-Jones <tonyg at lshift.net>wrote:
> To get your messages to stick around after a restart, you must both
>
> - arrange for them to land in a durable queue, AND
> - publish them with delivery-mode set to 2 (meaning persistent)
> in the content header for the basic.publish
>
ah-ha! Thank you, in py-amqplib this is simple:
m = amqp.Message(whatever, content_type='text/x-json')
m.properties["delivery_mode"] = 2
i've confirmed this works..... thanks tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090430/736c46b9/attachment.htm
More information about the rabbitmq-discuss
mailing list