MCPcopy
hub / github.com/celery/celery / add_compat

Method add_compat

celery/app/amqp.py:123–128  ·  view source on GitHub ↗
(self, name, **options)

Source from the content-addressed store, hash-verified

121 return self._add(queue)
122
123 def add_compat(self, name, **options):
124 # docs used to use binding_key as routing key
125 options.setdefault('routing_key', options.get('binding_key'))
126 if options['routing_key'] is None:
127 options['routing_key'] = name
128 return self._add(Queue.from_dict(name, **options))
129
130 def _add(self, queue):
131 if queue.exchange is None or queue.exchange.name == '':

Callers 2

__init__Method · 0.95
addMethod · 0.95

Calls 4

_addMethod · 0.95
setdefaultMethod · 0.45
getMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected