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

Method collect_log_extras

SpiffWorkflow/workflow.py:256–266  ·  view source on GitHub ↗

Return logging details for this workflow

(self, dct=None)

Source from the content-addressed store, hash-verified

254 return task.reset_branch(data)
255
256 def collect_log_extras(self, dct=None):
257 """Return logging details for this workflow"""
258 extra = dct or {}
259 extra.update({
260 'workflow_spec': self.spec.name,
261 'success': self.success,
262 'completed': self.completed,
263 })
264 if logger.level < 20:
265 extra.update({'tasks': [t.id for t in Workflow.get_tasks(self)]})
266 return extra
267
268 def _predict(self, mask=TaskState.NOT_FINISHED_MASK):
269 """Predict tasks with the provided mask"""

Callers 3

__init__Method · 0.95
cancelMethod · 0.95
_mark_completeMethod · 0.95

Calls 1

get_tasksMethod · 0.80

Tested by

no test coverage detected