From 32e0f5daf9d71973fb5e8418b8490c0eb4f5c167 Mon Sep 17 00:00:00 2001 From: lTimej <65690352+lTimej@users.noreply.github.com> Date: Wed, 29 May 2024 16:20:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=90=8E=E9=87=8D=E8=AF=95=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=86=85=E5=AE=B9=E9=94=99=E8=AF=AF=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E9=97=AE=E9=A2=98=20#7433=20(#7437)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复脚本报错后重试后,脚本内容错误渲染问题 #7433 * fix: 修复脚本报错后重试后,脚本内容错误渲染问题 #7433 --- gcloud/taskflow3/domains/dispatchers/node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcloud/taskflow3/domains/dispatchers/node.py b/gcloud/taskflow3/domains/dispatchers/node.py index ccb81f1966..ccd47eec7f 100644 --- a/gcloud/taskflow3/domains/dispatchers/node.py +++ b/gcloud/taskflow3/domains/dispatchers/node.py @@ -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,