MCPcopy
hub / github.com/celery/celery / deselect

Method deselect

celery/app/amqp.py:179–193  ·  view source on GitHub ↗

Deselect queues so that they won't be consumed from. Arguments: exclude (Sequence[str], str): Names of queues to avoid consuming from.

(self, exclude)

Source from the content-addressed store, hash-verified

177 }
178
179 def deselect(self, exclude):
180 """Deselect queues so that they won't be consumed from.
181
182 Arguments:
183 exclude (Sequence[str], str): Names of queues to avoid
184 consuming from.
185 """
186 if exclude:
187 exclude = maybe_list(exclude)
188 if self._consume_from is None:
189 # using all queues
190 return self.select(k for k in self if k not in exclude)
191 # using selection
192 for queue in exclude:
193 self._consume_from.pop(queue, None)
194
195 def new_missing(self, name):
196 queue_arguments = None

Callers 3

test_deselectMethod · 0.95
setup_queuesMethod · 0.80
cancel_task_queueMethod · 0.80

Calls 3

selectMethod · 0.95
maybe_listFunction · 0.85
popMethod · 0.45

Tested by 1

test_deselectMethod · 0.76