diff --git a/modules/grampus/grampus.go b/modules/grampus/grampus.go index d82dd018f..a168c35db 100755 --- a/modules/grampus/grampus.go +++ b/modules/grampus/grampus.go @@ -2,6 +2,7 @@ package grampus import ( "fmt" + "strconv" "strings" "code.gitea.io/gitea/models" @@ -320,7 +321,14 @@ func GenerateNotebookJob(ctx *context.Context, req *GenerateNotebookJobReq) (job } else if req.ComputeResource == models.GCUResource { actionType = models.ActionCreateGrampusGCUDebugTask } - notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, jobID, req.DisplayJobName, actionType) + task, err := models.GetCloudbrainByJobID(jobID) + if err != nil { + log.Error("GetCloudbrainByJobID failed: %v", err.Error()) + return "", err + } + + stringId := strconv.FormatInt(task.ID, 10) + notification.NotifyOtherTask(ctx.User, ctx.Repo.Repository, stringId, req.DisplayJobName, actionType) return jobID, nil }