Explorar el Código

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

非法操作 hace 3 meses
padre
commit
b218df6920
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      api/core/workflow/workflow_entry.py

+ 4 - 0
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:]