Browse Source

Merge remote-tracking branch 'origin/grampus-notebook' into gcu

gcu
chenyifan01 2 years ago
parent
commit
fca6c191ce
3 changed files with 8 additions and 0 deletions
  1. +1
    -0
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +6
    -0
      routers/repo/grampus.go

+ 1
- 0
options/locale/locale_en-US.ini View File

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


+ 1
- 0
options/locale/locale_zh-CN.ini View File

@@ -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=新增项目


+ 6
- 0
routers/repo/grampus.go View File

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


Loading…
Cancel
Save