Skip to content

Commit 234521b

Browse files
committed
add root task id to workflow logs
1 parent 807f4a3 commit 234521b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SpiffWorkflow/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def collect_log_extras(self, dct=None):
260260
'workflow_spec': self.spec.name,
261261
'success': self.success,
262262
'completed': self.completed,
263+
'root': self.task_tree.id
263264
})
264265
if logger.level < 20:
265266
extra.update({'tasks': [t.id for t in Workflow.get_tasks(self)]})

0 commit comments

Comments
 (0)