Skip to content

Commit

Permalink
minor: 去掉冗余判断
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Oct 19, 2023
1 parent 3b77e0f commit bf4472f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gcloud/taskflow3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,11 +978,7 @@ def get_node_detail(
detail = node_detail_result["data"]
detail.update(node_data)

if not detail.get("id"):
# 没有 ID 说明流程尚未创建完成,直接返回,无需补充额外的配置信息
return {"result": True, "data": detail, "message": "", "code": err_code.SUCCESS.code}

# # 补充重试信息
# 补充重试信息
detail["auto_retry_info"] = (
fetch_node_id__auto_retry_info_map(detail["parent_id"], [detail["id"]]).get(detail["id"]) or {}
)
Expand Down

0 comments on commit bf4472f

Please sign in to comment.