MCPcopy
hub / github.com/sartography/SpiffWorkflow / run_task_from_id

Method run_task_from_id

SpiffWorkflow/workflow.py:156–163  ·  view source on GitHub ↗

Runs the task with the given id. Args: task_id: the id of the task to run

(self, task_id)

Source from the content-addressed store, hash-verified

154 return self.tasks.get(task_id)
155
156 def run_task_from_id(self, task_id):
157 """Runs the task with the given id.
158
159 Args:
160 task_id: the id of the task to run
161 """
162 task = self.get_task_from_id(task_id)
163 return task.run()
164
165 def run_next(self, use_last_task=True, halt_on_manual=True):
166 """Runs the next task, starting from the branch containing the last completed task by default.

Callers 11

_advance_to_a1Method · 0.95
testRunThroughHappyMethod · 0.80
actual_testMethod · 0.80
actual_testMethod · 0.80
actual_test2Method · 0.80
actual_testMethod · 0.80
actual_test2Method · 0.80
actual_testMethod · 0.80
actual_test2Method · 0.80
actual_testMethod · 0.80

Calls 2

get_task_from_idMethod · 0.95
runMethod · 0.80

Tested by 11

_advance_to_a1Method · 0.76
testRunThroughHappyMethod · 0.64
actual_testMethod · 0.64
actual_testMethod · 0.64
actual_test2Method · 0.64
actual_testMethod · 0.64
actual_test2Method · 0.64
actual_testMethod · 0.64
actual_test2Method · 0.64
actual_testMethod · 0.64