diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 32144a14d..ad1f3c546 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1061,6 +1061,7 @@ model_rename=Duplicate model name, please modify model name. notebook_file_not_exist=Notebook file does not exist. notebook_select_wrong=Please select a Notebook(.ipynb) file first. notebook_file_no_right=You have no right to access the Notebook(.ipynb) file. +debug_again_fail=Fail to restart debug task, please try again later. date=Date repo_add=Project Increment diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index f1618449d..14ff9d882 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -1060,6 +1060,7 @@ model_rename=模型名称重复,请修改模型名称 notebook_file_not_exist=Notebook文件不存在。 notebook_select_wrong=请先选择Notebook(.ipynb)文件。 notebook_file_no_right=您没有这个Notebook文件的读权限。 +debug_again_fail=再次调试失败,请稍后再试。 date=日期 repo_add=新增项目 diff --git a/routers/repo/grampus.go b/routers/repo/grampus.go index 5264f3a43..ec6c5d671 100755 --- a/routers/repo/grampus.go +++ b/routers/repo/grampus.go @@ -1716,6 +1716,11 @@ func GrampusNotebookRestart(ctx *context.Context) { Type: task.Type, Uuid: task.Uuid, Image: task.Image, + ImageID: task.ImageID, + EngineID: task.EngineID, + CommitID: task.CommitID, + EngineName: task.EngineName, + IsLatestVersion: "1", BranchName: task.BranchName, DatasetName: task.DatasetName, ComputeResource: task.ComputeResource, @@ -1728,6 +1733,7 @@ func GrampusNotebookRestart(ctx *context.Context) { LabelName: task.LabelName, PreTrainModelUrl: task.PreTrainModelUrl, CkptName: task.CkptName, + WorkServerNumber: 1, } err = models.RestartCloudbrain(task, newTask)