Browse Source

#1654

fix bug
tags/v1.22.3.2^2
chenyifan01 3 years ago
parent
commit
2c18104fdc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/cloudbrain.go

+ 2
- 2
routers/repo/cloudbrain.go View File

@@ -1018,7 +1018,7 @@ func SyncCloudbrainStatus() {
continue
}
}
} else if task.JobType == string(models.JobTypeTrain) {
} else if task.JobType == string(models.JobTypeTrain) || task.JobType == string(models.JobTypeInference) {
result, err := modelarts.GetTrainJob(task.JobID, strconv.FormatInt(task.VersionID, 10))
if err != nil {
log.Error("GetTrainJob(%s) failed:%v", task.JobName, err)
@@ -1166,7 +1166,7 @@ func handleNoDurationTask(cloudBrains []*models.Cloudbrain) {
continue
}
}
} else if task.JobType == string(models.JobTypeTrain) {
} else if task.JobType == string(models.JobTypeTrain) || task.JobType == string(models.JobTypeInference) {
result, err := modelarts.GetTrainJob(task.JobID, strconv.FormatInt(task.VersionID, 10))
if err != nil {
log.Error("GetTrainJob(%s) failed:%v", task.JobName, err)


Loading…
Cancel
Save