[rabbitmq-discuss] auto_delete queues not going away
Matthias Radestock
matthias at lshift.net
Fri Nov 6 17:00:35 GMT 2009
Tim,
Tim Cole wrote:
> The server wasn't restarted, but the clients were shut down and
> replaced by new machines. Perhaps it's also an issue if the
> connection wasn't shut down cleanly?
An "abrupt" termination of a client connection will cause the associated
exclusive queues to be deleted. There are no known problems with that
functionality, and it is used widely.
So if the queues stayed around then either they weren't declared as
'exclusive' after all, or the server thought the connections were still
alive.
> Anyway, it sounds like what we want in this particular case is
> durable=False, exclusive=True, and auto_delete=False. Ideally, we don't
> actually want the queue to go away when the channel/consumer dies, but
> only if the connection does. Does that sound right?
Spot on.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list