Browse Source

提交代码

tags/v1.22.12.1^2
ychao_1983 3 years ago
parent
commit
9c2db2aeba
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      routers/repo/grampus.go

+ 9
- 1
routers/repo/grampus.go View File

@@ -1675,7 +1675,13 @@ func GrampusNotebookRestart(ctx *context.Context) {
res, err := grampus.RestartNotebookJob(task.JobID)
if err != nil {
log.Error("ManageNotebook2(%s) failed:%v", task.DisplayJobName, err.Error(), ctx.Data["MsgID"])
errorMsg = err.Error()
errorMsg = ctx.Tr("repo.debug_again_fail")
break
}

if res.GrampusResult.ErrorCode != 0 || res.NewId == "" {
log.Error("ManageNotebook2 failed:" + res.GrampusResult.ErrorMsg)
errorMsg = ctx.Tr("repo.debug_again_fail")
break
}

@@ -1690,6 +1696,8 @@ func GrampusNotebookRestart(ctx *context.Context) {
Type: task.Type,
Uuid: task.Uuid,
Image: task.Image,
BranchName: task.BranchName,
DatasetName: task.DatasetName,
ComputeResource: task.ComputeResource,
Description: task.Description,
CreatedUnix: createTime,


Loading…
Cancel
Save