|
|
|
@@ -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, |
|
|
|
|