mirror of https://github.com/celery/kombu.git
Merge branch 'nitzanm/master'
This commit is contained in:
commit
88990cea4e
|
@ -158,6 +158,7 @@ class Channel(virtual.Channel):
|
||||||
|
|
||||||
def _new_queue(self, queue, **kwargs):
|
def _new_queue(self, queue, **kwargs):
|
||||||
"""Ensures a queue exists in SQS."""
|
"""Ensures a queue exists in SQS."""
|
||||||
|
queue = self.queue_name_prefix + queue
|
||||||
try:
|
try:
|
||||||
return self._queue_cache[queue]
|
return self._queue_cache[queue]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
@ -323,6 +324,10 @@ class Channel(virtual.Channel):
|
||||||
def visibility_timeout(self):
|
def visibility_timeout(self):
|
||||||
return self.transport_options.get("visibility_timeout")
|
return self.transport_options.get("visibility_timeout")
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def queue_name_prefix(self):
|
||||||
|
return self.transport_options.get("queue_name_prefix", '')
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def supports_fanout(self):
|
def supports_fanout(self):
|
||||||
return self.transport_options.get("sdb_persistence", False)
|
return self.transport_options.get("sdb_persistence", False)
|
||||||
|
|
Loading…
Reference in New Issue