Skip to content

Commit

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

* fix: 修复脚本报错后重试后,脚本内容错误渲染问题 TencentBlueKing#7433
  • Loading branch information
lTimej authored and normal-wls committed May 30, 2024
1 parent 4afc3da commit 12ad9e6
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 @@ -625,7 +625,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 12ad9e6

Please sign in to comment.