Skip to content

Commit 1a8e7e6

Browse files
committed
feat(workflow.history): add cooked information
Signed-off-by: Yves Bastide <yves@botify.com>
1 parent 4ef8d87 commit 1a8e7e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

simpleflow/command.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ def workflow_history(
402402
output_format: str,
403403
reverse_order: bool = False,
404404
) -> None:
405-
from simpleflow.swf.mapper.models.history.base import History as BaseHistory
406-
407405
if ctx.parent.params["format"] != "json" or not ctx.parent.params["header"]:
408406
raise NotImplementedError("Only pretty JSON mode is implemented")
409407

408+
from simpleflow.swf.mapper.models.history.base import History as BaseHistory
409+
410410
ex = helpers.get_workflow_execution(domain, workflow_id, run_id)
411411
events = ex.history_events(
412412
callback=get_progression_callback("events"),
@@ -435,8 +435,11 @@ def workflow_history(
435435
"activities": history.activities,
436436
"child_workflows": history.child_workflows,
437437
"markers": history.markers,
438-
"signals": history.signals,
439438
"timers": history.timers,
439+
"signals": history.signals,
440+
"signal_lists": history.signal_lists,
441+
"external_workflows_signaling": history.external_workflows_signaling,
442+
"signaled_workflows": history.signaled_workflows,
440443
}
441444
else:
442445
raise NotImplementedError

0 commit comments

Comments
 (0)