Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

When graph_engine worker run exception, keep the node_id for deep res… (#26205)

湛露先生123bb3ec08ab
diff --git a/api/core/workflow/graph_engine/worker.py b/api/core/workflow/graph_engine/worker.py
index 42c9b936ddb..73e59ee298b 100644
--- a/api/core/workflow/graph_engine/worker.py
+++ b/api/core/workflow/graph_engine/worker.py
@@ -16,7 +16,6 @@ from uuid import uuid4
from flask import Flask
from typing_extensions import override
-from core.workflow.enums import NodeType
from core.workflow.graph import Graph
from core.workflow.graph_events import GraphNodeEventBase, NodeRunFailedEvent
from core.workflow.nodes.base.node import Node
@@ -108,8 +107,8 @@ class Worker(threading.Thread):
except Exception as e:
error_event = NodeRunFailedEvent(
id=str(uuid4()),
- node_id="unknown",
- node_type=NodeType.CODE,
+ node_id=node.id,
+ node_type=node.node_type,
in_iteration_id=None,
error=str(e),
start_at=datetime.now(),