|
|
|
@@ -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) |
|
|
|
|