MCPcopy Index your code
hub / github.com/coleifer/huey / extend_data

Method extend_data

huey/api.py:886–898  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

884 raise TaskTimeout('timeout %ss' % self.timeout)
885
886 def extend_data(self, data):
887 if data is None or data == ():
888 return
889
890 if isinstance(data, tuple):
891 self.args += data
892 elif isinstance(data, dict):
893 # XXX: alternate would be self.kwargs.update(data), but this will
894 # stomp on user-provided parameters.
895 for key, value in data.items():
896 self.kwargs.setdefault(key, value)
897 else:
898 self.args = self.args + (data,)
899
900 def then(self, task, *args, **kwargs):
901 if self.on_complete:

Callers 4

_executeMethod · 0.80
_check_chordMethod · 0.80
thenMethod · 0.80
errorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected