Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: retry_v2变量免渲染问题处理 #7526 #7529

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion gcloud/taskflow3/domains/dispatchers/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ def retry_v2(self, operator: str, **kwargs) -> dict:
return api_result
if "__executor_proxy" in api_result.data["inputs"] and kwargs["inputs"]:
kwargs["inputs"]["__executor_proxy"] = api_result.data["inputs"]["__executor_proxy"]["value"]

if kwargs["inputs"]:
render_keys = kwargs["inputs"].get("_escape_render_keys", [])
for k, v in api_result.data["inputs"].items():
if v.get("need_render") is False and k not in render_keys:
render_keys.append(k)
if render_keys:
kwargs["inputs"]["_escape_render_keys"] = render_keys
# 数据为空的情况传入 None, v2 engine api 不认为 {} 是空数据
return bamboo_engine_api.retry_node(runtime=runtime, node_id=self.node_id, data=kwargs["inputs"] or None)

Expand Down
Loading