|
|
@@ -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) { |
|
|
func GetAiSafetyTask(ctx *context.Context) { |
|
|
var ID = ctx.Params(":jobid") |
|
|
var ID = ctx.Params(":jobid") |
|
|
job, err := models.GetCloudbrainByJobIDWithDeleted(ID) |
|
|
job, err := models.GetCloudbrainByJobIDWithDeleted(ID) |
|
|
|