forked from JointCloud/pcm-coordinator
parent
451011c886
commit
1ee26fc7db
|
@ -32,6 +32,9 @@ func (l *TaskDetailLogic) TaskDetail(req *types.TaskDetailReq) (resp *types.Task
|
||||||
var clouds []models.Cloud
|
var clouds []models.Cloud
|
||||||
l.svcCtx.DbEngin.Where("task_id = ?", req.TaskId).Find(&clouds)
|
l.svcCtx.DbEngin.Where("task_id = ?", req.TaskId).Find(&clouds)
|
||||||
for _, cloud := range clouds {
|
for _, cloud := range clouds {
|
||||||
|
if l.svcCtx.K8sRpc[cloud.ParticipantId] == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// 查询监控地址
|
// 查询监控地址
|
||||||
var metricsUrl string
|
var metricsUrl string
|
||||||
l.svcCtx.DbEngin.Raw(" SELECT metrics_url FROM `sc_participant_phy_info` WHERE id = ? ", cloud.ParticipantId).Scan(&metricsUrl)
|
l.svcCtx.DbEngin.Raw(" SELECT metrics_url FROM `sc_participant_phy_info` WHERE id = ? ", cloud.ParticipantId).Scan(&metricsUrl)
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
description: modelArts
|
description: modelArts
|
||||||
strategy: 策略
|
|
||||||
synergy: 协同状态
|
|
||||||
name: modelArts
|
name: modelArts
|
||||||
tasks:
|
tasks:
|
||||||
- serviceName: modelArts
|
- serviceName: modelArts
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
description: ac_01
|
description: ac_01
|
||||||
strategy: 策略
|
|
||||||
synergy: 协同状态
|
|
||||||
name: ac_01
|
name: ac_01
|
||||||
tasks:
|
tasks:
|
||||||
- taskType: hpc
|
- taskType: hpc
|
||||||
|
|
Loading…
Reference in New Issue