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

Method _ready

SpiffWorkflow/task.py:328–333  ·  view source on GitHub ↗

Marks the task as ready for execution.

(self)

Source from the content-addressed store, hash-verified

326 return self.internal_data.get(name, default)
327
328 def _ready(self):
329 """Marks the task as ready for execution."""
330 if self.has_state(TaskState.COMPLETED) or self.has_state(TaskState.CANCELLED):
331 return
332 self._set_state(TaskState.READY)
333 self.task_spec._on_ready(self)
334
335 def run(self):
336 """Execute the task.

Callers 6

_add_childMethod · 0.95
__init__Method · 0.80
_updateMethod · 0.80
_on_triggerMethod · 0.80
_on_triggerMethod · 0.80
_update_hookMethod · 0.80

Calls 3

has_stateMethod · 0.95
_set_stateMethod · 0.95
_on_readyMethod · 0.80

Tested by

no test coverage detected