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

Class group

huey/api.py:1152–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1150
1151
1152class group(object):
1153 def __init__(self, tasks):
1154 self.tasks = tasks
1155
1156 def then(self, task, *args, **kwargs):
1157 if not isinstance(task, Task):
1158 task = task.s(*args, **kwargs)
1159 return chord(self.tasks, task)
1160
1161 def error(self, *args, **kwargs):
1162 # Apply error handler to all tasks.
1163 for task in self.tasks:
1164 task.error(*args, **kwargs)
1165 return self
1166
1167
1168class chord(object):

Callers 7

test_groupMethod · 0.90
test_groupMethod · 0.90
test_group_prioritiesMethod · 0.90
test_group_callbackMethod · 0.90

Calls

no outgoing calls

Tested by 7

test_groupMethod · 0.72
test_groupMethod · 0.72
test_group_prioritiesMethod · 0.72
test_group_callbackMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…