Browse Source

提交代码。

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

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

@@ -65,6 +65,16 @@ func CloudBrainAiSafetyCreateTest(ctx *context.Context) {
}
}

func GetAiSafetyTaskByJob(job *models.Cloudbrain) {

if job == nil {
log.Error("GetCloudbrainByJobID failed")
return
}
syncAiSafetyTaskStatus(job)

}

func GetAiSafetyTask(ctx *context.Context) {
var ID = ctx.Params(":jobid")
job, err := models.GetCloudbrainByJobIDWithDeleted(ID)


Loading…
Cancel
Save