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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: add logging for missing edge mapping in StreamProcessor (#12008)
-LAN-75bce2822ed0
diff --git a/api/core/workflow/nodes/answer/base_stream_processor.py b/api/core/workflow/nodes/answer/base_stream_processor.pyindex 36c3fe180a9..031347662e4 100644--- a/api/core/workflow/nodes/answer/base_stream_processor.py+++ b/api/core/workflow/nodes/answer/base_stream_processor.py@@ -1,3 +1,4 @@+import loggingfrom abc import ABC, abstractmethodfrom collections.abc import Generator@@ -5,6 +6,8 @@ from core.workflow.entities.variable_pool import VariablePoolfrom core.workflow.graph_engine.entities.event import GraphEngineEvent, NodeRunSucceededEventfrom core.workflow.graph_engine.entities.graph import Graph+logger = logging.getLogger(__name__)+class StreamProcessor(ABC):def __init__(self, graph: Graph, variable_pool: VariablePool) -> None:@@ -31,6 +34,9 @@ class StreamProcessor(ABC):if run_result.edge_source_handle:reachable_node_ids = []unreachable_first_node_ids = []+ if finished_node_id not in self.graph.edge_mapping:+ logger.warning(f"node {finished_node_id} has no edge mapping")+ returnfor edge in self.graph.edge_mapping[finished_node_id]:if (edge.run_condition