소스 검색

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

非法操作 6 달 전
부모
커밋
b218df6920
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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:]