Browse Source

提交代码,修改一下最终结束时间值。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.1^2
zouap 3 years ago
parent
commit
97a710c4e9
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/aisafety.go

+ 3
- 0
routers/repo/aisafety.go View File

@@ -307,6 +307,9 @@ func queryTaskStatusFromModelSafetyTestServer(job *models.Cloudbrain) {
if result.Data.Status == 1 {
log.Info("The task is running....")
} else {
job.EndTime = timeutil.TimeStampNow()
job.Duration = (int64(job.EndTime) - int64(job.StartTime)) / 1000
job.TrainJobDuration = models.ConvertDurationToStr(job.Duration)
if result.Data.Code == 0 {
job.ResultJson = result.Data.StandardJson
job.Status = string(models.JobSucceeded)


Loading…
Cancel
Save