From c00e7d3f654965eef9fd26cecbb5750d21f10791 Mon Sep 17 00:00:00 2001 From: Novice <857526207@qq.com> Date: Tue, 11 Feb 2025 15:48:55 +0800 Subject: [PATCH] fix: retry log running error (#13472) Co-authored-by: Novice Lee --- api/core/workflow/graph_engine/graph_engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/workflow/graph_engine/graph_engine.py b/api/core/workflow/graph_engine/graph_engine.py index db1e01f14f..be7ccad4eb 100644 --- a/api/core/workflow/graph_engine/graph_engine.py +++ b/api/core/workflow/graph_engine/graph_engine.py @@ -648,7 +648,7 @@ class GraphEngine: retries += 1 route_node_state.node_run_result = run_result yield NodeRunRetryEvent( - id=node_instance.id, + id=str(uuid.uuid4()), node_id=node_instance.node_id, node_type=node_instance.node_type, node_data=node_instance.node_data, @@ -663,7 +663,7 @@ class GraphEngine: start_at=retry_start_at, ) time.sleep(retry_interval) - continue + break route_node_state.set_finished(run_result=run_result) if run_result.status == WorkflowNodeExecutionStatus.FAILED: