MCPcopy
hub / github.com/celery/celery / extend_list_option

Method extend_list_option

celery/canvas.py:708–714  ·  view source on GitHub ↗

Extends the list at the given key in self.options with the given value. If the value is not a list, it will be converted to one.

(self, key, value)

Source from the content-addressed store, hash-verified

706 return value
707
708 def extend_list_option(self, key, value):
709 """Extends the list at the given key in self.options with the given value.
710
711 If the value is not a list, it will be converted to one.
712 """
713 items = self._with_list_option(key)
714 items.extend(maybe_list(value))
715
716 def link(self, callback):
717 """Add callback task to be applied if this task succeeds.

Callers 1

runMethod · 0.80

Calls 3

_with_list_optionMethod · 0.95
maybe_listFunction · 0.85
extendMethod · 0.45

Tested by

no test coverage detected