|
|
@@ -439,6 +439,7 @@ func NotebookManage(ctx *context.Context) { |
|
|
param := models.NotebookAction{ |
|
|
param := models.NotebookAction{ |
|
|
Action: action, |
|
|
Action: action, |
|
|
} |
|
|
} |
|
|
|
|
|
createTime := timeutil.TimeStampNow() |
|
|
res, err := modelarts.ManageNotebook2(task.JobID, param) |
|
|
res, err := modelarts.ManageNotebook2(task.JobID, param) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Error("ManageNotebook2(%s) failed:%v", task.JobName, err.Error(), ctx.Data["MsgID"]) |
|
|
log.Error("ManageNotebook2(%s) failed:%v", task.JobName, err.Error(), ctx.Data["MsgID"]) |
|
|
@@ -465,6 +466,8 @@ func NotebookManage(ctx *context.Context) { |
|
|
Image: task.Image, |
|
|
Image: task.Image, |
|
|
ComputeResource: task.ComputeResource, |
|
|
ComputeResource: task.ComputeResource, |
|
|
Description: task.Description, |
|
|
Description: task.Description, |
|
|
|
|
|
CreatedUnix: createTime, |
|
|
|
|
|
UpdatedUnix: createTime, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
err = models.RestartCloudbrain(task, newTask) |
|
|
err = models.RestartCloudbrain(task, newTask) |
|
|
|