have worker use the passed-in connection if provided

main
Chris Curvey 9 years ago
parent 4d204eed36
commit 4326e19140

@ -139,7 +139,8 @@ class Worker(object):
queue_class = import_attribute(queue_class)
self.queue_class = queue_class
queues = [self.queue_class(name=q) if isinstance(q, string_types) else q
queues = [self.queue_class(name=q, connection=connection)
if isinstance(q, string_types) else q
for q in ensure_list(queues)]
self._name = name
self.queues = queues

Loading…
Cancel
Save