Browse Source

#1654

update
pull/1714/head
chenyifan01 3 years ago
parent
commit
39b5f6291c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/api/v1/repo/modelarts.go

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

@@ -154,6 +154,10 @@ func GetModelArtsTrainJobVersion(ctx *context.APIContext) {
job.TrainJobDuration = "00:00:00"
}

if models.IsTrainJobTerminal(job.Status) {
job.EndTime = job.StartTime.Add(job.Duration / 1000)
}

err = models.UpdateTrainJobVersion(job)
if err != nil {
log.Error("UpdateJob failed:", err)


Loading…
Cancel
Save