|
@@ -38,7 +38,7 @@ _exchanges_declared = set()
|
|
|
|
|
|
def extract_msg_options(options, keep=MSG_OPTIONS):
|
|
|
"""Extracts known options to `basic_publish` from a dict,
|
|
|
- as a new dict."""
|
|
|
+ and returns a new dict."""
|
|
|
return dict((name, options.get(name)) for name in keep)
|
|
|
|
|
|
|
|
@@ -172,7 +172,7 @@ class AMQP(object):
|
|
|
def __init__(self, app):
|
|
|
self.app = app
|
|
|
|
|
|
- def Consumer(self, *args, **kwargs):
|
|
|
+ def ConsumerSet(self, *args, **kwargs):
|
|
|
return messaging.ConsumerSet(*args, **kwargs)
|
|
|
|
|
|
def Queues(self, queues):
|
|
@@ -213,8 +213,8 @@ class AMQP(object):
|
|
|
return publisher
|
|
|
|
|
|
def get_task_consumer(self, connection, queues=None, **kwargs):
|
|
|
- return self.Consumer(connection, from_dict=queues or self.queues,
|
|
|
- **kwargs)
|
|
|
+ return self.ConsumerSet(connection, from_dict=queues or self.queues,
|
|
|
+ **kwargs)
|
|
|
|
|
|
def get_default_queue(self):
|
|
|
q = self.app.conf.CELERY_DEFAULT_QUEUE
|