Browse Source

提交代码。

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

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

@@ -225,8 +225,11 @@ func TimerHandleModelSafetyTestTask() {
}

func queryTaskStatusFromGrampus(task *models.Cloudbrain) {
log.Info("The task not finished,name=" + task.DisplayJobName)
if task.DeletedAt.IsZero() { //normal record
result, err := grampus.GetJob(task.JobID)
resultJson, _ := json.Marshal(result)
log.Info("resultJson=" + string(resultJson))
if err != nil {
log.Error("GetJob failed:" + err.Error())
return


Loading…
Cancel
Save