Skip to content

Commit

Permalink
fix: 修复脚本报错后重试后,脚本内容错误渲染问题 #7433 (#7437)
Browse files Browse the repository at this point in the history
* fix: 修复脚本报错后重试后,脚本内容错误渲染问题 #7433

* fix: 修复脚本报错后重试后,脚本内容错误渲染问题 #7433
  • Loading branch information
lTimej authored May 29, 2024
1 parent 72065b1 commit 32e0f5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gcloud/taskflow3/domains/dispatchers/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ def get_node_data_v2(
"message": err,
"code": err_code.UNKNOWN_ERROR.code,
}

need_render_data = node_info.get("component", {}).get("data", {})
for k, v in need_render_data.items():
if v.get("need_render") is False and k in inputs:
inputs[k] = v["value"]
data = {"inputs": inputs, "outputs": outputs_table, "ex_data": outputs.pop("ex_data", "")}
return {
"result": True,
Expand Down

0 comments on commit 32e0f5d

Please sign in to comment.