Browse Source

fix-bug

pull/1606/head
liuzx 3 years ago
parent
commit
09bb895907
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/api/v1/repo/modelarts.go

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

@@ -152,6 +152,7 @@ func GetModelArtsTrainJobVersion(ctx *context.APIContext) {

ctx.JSON(http.StatusOK, map[string]interface{}{
"JobID": jobID,
"ID": job.ID,
"JobStatus": job.Status,
"JobDuration": job.TrainJobDuration,
})
@@ -385,6 +386,7 @@ func GetModelArtsInferenceJob(ctx *context.APIContext) {

ctx.JSON(http.StatusOK, map[string]interface{}{
"JobID": jobID,
"ID": job.ID,
"JobStatus": job.Status,
"JobDuration": job.TrainJobDuration,
})


Loading…
Cancel
Save