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:
parent
fb2e0803c0
commit
3664f53c51
|
|
@ -179,7 +179,7 @@ async def execute_workflow(
|
|||
"node_label": node_label,
|
||||
"status": node_state.status.value,
|
||||
"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
|
||||
})
|
||||
|
||||
|
|
@ -214,7 +214,7 @@ async def execute_workflow(
|
|||
"status": "completed",
|
||||
"aggregated_result": aggregated,
|
||||
"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]),
|
||||
"failed_nodes": len([ns for ns in node_states if ns.status == NodeStatus.FAILED]),
|
||||
"completed_at": completed_at
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user