fix: Use NodeStatus.EXECUTED instead of COMPLETED
NodeStatus enum has EXECUTED, not COMPLETED. Fixed in workflow_executor.py progress callback.
This commit is contained in:
1 parent
fb2e0803c0
commit
3664f53c51
1 file changed
+2
-2
@@ -179,7 +179,7 @@ async def execute_workflow(
|
|||||||
"node_label": node_label,
|
"node_label": node_label,
|
||||||
"status": node_state.status.value,
|
"status": node_state.status.value,
|
||||||
"total_nodes": len(graph.nodes),
|
"total_nodes": len(graph.nodes),
|
||||||
"completed_nodes": len([ns for ns in node_states if ns.status in [NodeStatus.COMPLETED, NodeStatus.SKIPPED]]),
|
"completed_nodes": len([ns for ns in node_states if ns.status in [NodeStatus.EXECUTED, NodeStatus.SKIPPED]]),
|
||||||
"error": node_state.error if node_state.status == NodeStatus.FAILED else None
|
"error": node_state.error if node_state.status == NodeStatus.FAILED else None
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ async def execute_workflow(
|
|||||||
"status": "completed",
|
"status": "completed",
|
||||||
"aggregated_result": aggregated,
|
"aggregated_result": aggregated,
|
||||||
"total_nodes": len(node_states),
|
"total_nodes": len(node_states),
|
||||||
"completed_nodes": len([ns for ns in node_states if ns.status == NodeStatus.COMPLETED]),
|
"completed_nodes": len([ns for ns in node_states if ns.status == NodeStatus.EXECUTED]),
|
||||||
"skipped_nodes": len([ns for ns in node_states if ns.status == NodeStatus.SKIPPED]),
|
"skipped_nodes": len([ns for ns in node_states if ns.status == NodeStatus.SKIPPED]),
|
||||||
"failed_nodes": len([ns for ns in node_states if ns.status == NodeStatus.FAILED]),
|
"failed_nodes": len([ns for ns in node_states if ns.status == NodeStatus.FAILED]),
|
||||||
"completed_at": completed_at
|
"completed_at": completed_at
|
||||||
|
|||||||
Reference in new issue
Block a user