Browse Source

Merge remote-tracking branch 'origin/V20221102' into fix-2524

fix-2524
liuzx 3 years ago
parent
commit
08506465cb
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      routers/api/v1/repo/modelarts.go

+ 2
- 6
routers/api/v1/repo/modelarts.go View File

@@ -173,15 +173,11 @@ func GetModelArtsTrainJobVersion(ctx *context.APIContext) {
if len(result.JobInfo.Tasks) > 0 { if len(result.JobInfo.Tasks) > 0 {
if len(result.JobInfo.Tasks[0].CenterID) > 0 && len(result.JobInfo.Tasks[0].CenterName) > 0 { if len(result.JobInfo.Tasks[0].CenterID) > 0 && len(result.JobInfo.Tasks[0].CenterName) > 0 {
job.AiCenter = result.JobInfo.Tasks[0].CenterID[0] + "+" + result.JobInfo.Tasks[0].CenterName[0] job.AiCenter = result.JobInfo.Tasks[0].CenterID[0] + "+" + result.JobInfo.Tasks[0].CenterName[0]
aiCenterName = cloudbrainService.GetAiCenterShow(job.AiCenter, ctx.Context)
// aiCenterName = result.JobInfo.Tasks[0].CenterName[0]
aiCenterName = result.JobInfo.Tasks[0].CenterName[0]
} }
} }
} else { } else {
temp := strings.Split(job.AiCenter, "+")
if len(temp) > 1 {
aiCenterName = temp[1]
}
aiCenterName = cloudbrainService.GetAiCenterShow(job.AiCenter, ctx.Context)
} }
if oldStatus != job.Status { if oldStatus != job.Status {
notification.NotifyChangeCloudbrainStatus(job, oldStatus) notification.NotifyChangeCloudbrainStatus(job, oldStatus)


Loading…
Cancel
Save