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.

fix: draft run single node can't get env variable (#12266)

非法操作b218df692063
diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py
index b14c6fafbd9..f622d0b2d01 100644
--- a/api/core/workflow/workflow_entry.py
+++ b/api/core/workflow/workflow_entry.py
@@ -239,6 +239,10 @@ class WorkflowEntry:
):
raise ValueError(f"Variable key {node_variable} not found in user inputs.")
+ # environment variable already exist in variable pool, not from user inputs
+ if variable_pool.get(variable_selector):
+ continue
+
# fetch variable node id from variable selector
variable_node_id = variable_selector[0]
variable_key_list = variable_selector[1:]