Skip to content

Commit

Permalink
fix: 修复脚本报错后重试后,脚本内容错误渲染问题 TencentBlueKing#7433
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej committed Apr 25, 2024
1 parent 0c997b0 commit d45c2ea
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 "need_render" in v and not v["need_render"] 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 d45c2ea

Please sign in to comment.