Skip to content

Commit

Permalink
fix: skip invalid source_node_id in end stream generator router
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <[email protected]>
  • Loading branch information
laipz8200 committed Dec 23, 2024
1 parent 453f324 commit 75d2a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/core/workflow/nodes/end/end_stream_generate_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def _recursive_fetch_end_dependencies(
reverse_edges = reverse_edge_mapping.get(current_node_id, [])
for edge in reverse_edges:
source_node_id = edge.source_node_id
# found sometimes source_node_id is not in node_id_config_mapping, temporary fix by skip it
if source_node_id not in node_id_config_mapping:
continue
source_node_type = node_id_config_mapping[source_node_id].get("data", {}).get("type")
if source_node_type in {
NodeType.IF_ELSE.value,
Expand Down

0 comments on commit 75d2a0e

Please sign in to comment.