carrot icon indicating copy to clipboard operation
carrot copied to clipboard

No ability to set different auto_delete setting for both exchange and queue.

Open ask opened this issue 14 years ago • 0 comments

When declaring a "Consumer", the exchange is also declared. This means the consumers auto_delete setting will be used for the exchange as well.

I see some solutions here:

  1. Don't declare the exchange in the consumer.
  2. Have the ability to use an Exchange as the exchange argument:
 e = Exchange("foo", "direct", auto_delete=True)
 c = Consumer(queue="foo", exchange=e, auto_delete=False)

ask avatar Jun 17 '10 14:06 ask