mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 18:45:56 +08:00
fix: retry log running error (#13472)
Co-authored-by: Novice Lee <novicelee@NoviPro.local>
This commit is contained in:
parent
1f38d4846b
commit
c00e7d3f65
@ -648,7 +648,7 @@ class GraphEngine:
|
|||||||
retries += 1
|
retries += 1
|
||||||
route_node_state.node_run_result = run_result
|
route_node_state.node_run_result = run_result
|
||||||
yield NodeRunRetryEvent(
|
yield NodeRunRetryEvent(
|
||||||
id=node_instance.id,
|
id=str(uuid.uuid4()),
|
||||||
node_id=node_instance.node_id,
|
node_id=node_instance.node_id,
|
||||||
node_type=node_instance.node_type,
|
node_type=node_instance.node_type,
|
||||||
node_data=node_instance.node_data,
|
node_data=node_instance.node_data,
|
||||||
@ -663,7 +663,7 @@ class GraphEngine:
|
|||||||
start_at=retry_start_at,
|
start_at=retry_start_at,
|
||||||
)
|
)
|
||||||
time.sleep(retry_interval)
|
time.sleep(retry_interval)
|
||||||
continue
|
break
|
||||||
route_node_state.set_finished(run_result=run_result)
|
route_node_state.set_finished(run_result=run_result)
|
||||||
|
|
||||||
if run_result.status == WorkflowNodeExecutionStatus.FAILED:
|
if run_result.status == WorkflowNodeExecutionStatus.FAILED:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user