From 1ee26fc7dbaef58a4cc4a0d87ee55db8b29a5e6d Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Tue, 7 Nov 2023 15:37:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: ce5d1d940ba07e2cf0fc915d8ad88aba81dac914 --- api/internal/logic/core/taskdetaillogic.go | 3 +++ examples/ai/modelArts.yaml | 2 -- examples/hpc/ac.yaml | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/internal/logic/core/taskdetaillogic.go b/api/internal/logic/core/taskdetaillogic.go index 2d8ac35f6..ce048cfa9 100644 --- a/api/internal/logic/core/taskdetaillogic.go +++ b/api/internal/logic/core/taskdetaillogic.go @@ -32,6 +32,9 @@ func (l *TaskDetailLogic) TaskDetail(req *types.TaskDetailReq) (resp *types.Task var clouds []models.Cloud l.svcCtx.DbEngin.Where("task_id = ?", req.TaskId).Find(&clouds) for _, cloud := range clouds { + if l.svcCtx.K8sRpc[cloud.ParticipantId] == nil { + continue + } // 查询监控地址 var metricsUrl string l.svcCtx.DbEngin.Raw(" SELECT metrics_url FROM `sc_participant_phy_info` WHERE id = ? ", cloud.ParticipantId).Scan(&metricsUrl) diff --git a/examples/ai/modelArts.yaml b/examples/ai/modelArts.yaml index e5e579fd4..c724191c4 100644 --- a/examples/ai/modelArts.yaml +++ b/examples/ai/modelArts.yaml @@ -1,6 +1,4 @@ description: modelArts -strategy: 策略 -synergy: 协同状态 name: modelArts tasks: - serviceName: modelArts diff --git a/examples/hpc/ac.yaml b/examples/hpc/ac.yaml index 07f022303..69713d259 100644 --- a/examples/hpc/ac.yaml +++ b/examples/hpc/ac.yaml @@ -1,6 +1,4 @@ description: ac_01 -strategy: 策略 -synergy: 协同状态 name: ac_01 tasks: - taskType: hpc