mirror of https://github.com/celery/kombu.git
compat ConsumerSet should auto declare new queues
This commit is contained in:
parent
f4fea5d27c
commit
e1b19b9566
|
@ -234,8 +234,10 @@ class ConsumerSet(messaging.Consumer):
|
||||||
return self.purge()
|
return self.purge()
|
||||||
|
|
||||||
def add_consumer_from_dict(self, queue, **options):
|
def add_consumer_from_dict(self, queue, **options):
|
||||||
queue = entry_to_queue(queue, **options)
|
queue = entry_to_queue(queue, **options)(self.channel)
|
||||||
self.queues.append(queue(self.channel))
|
if self.auto_declare:
|
||||||
|
queue.declare()
|
||||||
|
self.queues.append(queue)
|
||||||
return queue
|
return queue
|
||||||
|
|
||||||
def add_consumer(self, consumer):
|
def add_consumer(self, consumer):
|
||||||
|
|
Loading…
Reference in New Issue