Browse Source

任务详情接口修改

Former-commit-id: ce5d1d940b
pull/9/head
zhangwei 2 years ago
parent
commit
1ee26fc7db
3 changed files with 3 additions and 4 deletions
  1. +3
    -0
      api/internal/logic/core/taskdetaillogic.go
  2. +0
    -2
      examples/ai/modelArts.yaml
  3. +0
    -2
      examples/hpc/ac.yaml

+ 3
- 0
api/internal/logic/core/taskdetaillogic.go View File

@@ -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)


+ 0
- 2
examples/ai/modelArts.yaml View File

@@ -1,6 +1,4 @@
description: modelArts
strategy: 策略
synergy: 协同状态
name: modelArts
tasks:
- serviceName: modelArts


+ 0
- 2
examples/hpc/ac.yaml View File

@@ -1,6 +1,4 @@
description: ac_01
strategy: 策略
synergy: 协同状态
name: ac_01
tasks:
- taskType: hpc


Loading…
Cancel
Save