|
|
|
@@ -291,7 +291,7 @@ func GenerateNotebook2(ctx *context.Context, displayJobName, jobName, uuid, desc |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobResult.ID, jobName, models.ActionCreateDebugNPUTask) |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobResult.ID, displayJobName, models.ActionCreateDebugNPUTask) |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
@@ -359,10 +359,10 @@ func GenerateTrainJob(ctx *context.Context, req *GenerateTrainJobReq) (err error |
|
|
|
}) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
log.Error("CreateCloudbrain(%s) failed:%v", req.JobName, err.Error()) |
|
|
|
log.Error("CreateCloudbrain(%s) failed:%v", req.DisplayJobName, err.Error()) |
|
|
|
return err |
|
|
|
} |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobId, req.JobName, models.ActionCreateTrainTask) |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobId, req.DisplayJobName, models.ActionCreateTrainTask) |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
@@ -589,7 +589,7 @@ func GenerateInferenceJob(ctx *context.Context, req *GenerateInferenceJobReq) (e |
|
|
|
log.Error("CreateCloudbrain(%s) failed:%v", req.JobName, err.Error()) |
|
|
|
return err |
|
|
|
} |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.JobName, models.ActionCreateInferenceTask) |
|
|
|
notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.DisplayJobName, models.ActionCreateInferenceTask) |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
|