Thanks&nbsp;Matthias.<div><br></div><div>Queue TTL was exactly what I needed.&nbsp;<br><div><br>On Friday, October 26, 2012 9:47:12 AM UTC+2, Matthias Radestock wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 26/10/12 07:28, Raviv Pavel wrote:
<br>&gt; I find this behavior is problematic
<br>
<br>AMQP/Rabbit could hardly do anything different - if the sole condition 
<br>for auto-deletion was that there are no consumers then the queue would 
<br>get deleted straight after creation, before you've had a chance to 
<br>attach any consumers.
<br>
<br>&gt; If I create an auto-delete queue (by code) and then crash before
<br>&gt; consuming, the queue will be stuck there until I delete it.
<br>
<br>Couldn't you make the queue 'exclusive' instead of 'auto-delete'?
<br>
<br>Or, alternatively, set a lease (<a href="http://www.rabbitmq.com/ttl.html#queue-ttl" target="_blank">http://www.rabbitmq.com/ttl.<wbr>html#queue-ttl</a>).
<br>
<br>Regards,
<br>
<br>Matthias.
<br></blockquote></div></div>