|
|
@@ -772,7 +772,10 @@ func GenerateInferenceJob(ctx *context.Context, req *GenerateInferenceJobReq) (e |
|
|
|
return err |
|
|
|
} |
|
|
|
if req.JobType == string(models.JobTypeModelSafety) { |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.DisplayJobName, models.ActionCreateBenchMarkTask) |
|
|
|
task, err := models.GetCloudbrainByJobID(jobID) |
|
|
|
if err == nil { |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, fmt.Sprint(task.ID), req.DisplayJobName, models.ActionCreateBenchMarkTask) |
|
|
|
} |
|
|
|
} else { |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.DisplayJobName, models.ActionCreateInferenceTask) |
|
|
|
} |
|
|
|