Browse Source

Merge pull request '修复bug' (#1768) from fix-1765 into V20220328

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1768
Reviewed-by: lewis <747342561@qq.com>
tags/v1.22.3.2^2
lewis 3 years ago
parent
commit
1142006003
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      routers/api/v1/repo/modelarts.go

+ 1
- 3
routers/api/v1/repo/modelarts.go View File

@@ -377,9 +377,7 @@ func GetModelArtsInferenceJob(ctx *context.APIContext) {
}
job.Status = modelarts.TransTrainJobStatus(result.IntStatus)
job.Duration = result.Duration / 1000
job.TrainJobDuration = result.TrainJobDuration

job.TrainJobDuration = models.ConvertDurationToStr(result.Duration)
job.TrainJobDuration = models.ConvertDurationToStr(job.Duration)

if job.EndTime == 0 && models.IsTrainJobTerminal(job.Status) && job.StartTime > 0 {
job.EndTime = job.StartTime.Add(job.Duration)


Loading…
Cancel
Save