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

This commit is contained in:
非法操作 2025-01-01 13:31:44 +08:00 committed by GitHub
parent 5b6950e545
commit b218df6920
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -239,6 +239,10 @@ class WorkflowEntry:
): ):
raise ValueError(f"Variable key {node_variable} not found in user inputs.") 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 # fetch variable node id from variable selector
variable_node_id = variable_selector[0] variable_node_id = variable_selector[0]
variable_key_list = variable_selector[1:] variable_key_list = variable_selector[1:]