From 2605deea432e34cef8f5e195f2eb5a0b8f3dfc6b Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Mon, 20 Jun 2022 16:23:08 +0800 Subject: [PATCH] debug --- options/locale/locale_zh-CN.ini | 2 +- routers/repo/grampus.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 713969178..46d47238d 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -1190,7 +1190,7 @@ model.manage.sava_model = 保存模型 model.manage.model_manage = 模型管理 model.manage.model_accuracy = 模型精度 -grampus.train_job.ai_center=ai计算中心 +grampus.train_job.ai_center=智算中心 grampus.dataset_path_rule = 训练脚本存储在/tmp/code中,数据集存储在/tmp/dataset中,训练输出请存储在/tmp/output中以供后续下载。 template.items=模板选项 diff --git a/routers/repo/grampus.go b/routers/repo/grampus.go index a741491b2..f8fdfe745 100755 --- a/routers/repo/grampus.go +++ b/routers/repo/grampus.go @@ -655,7 +655,7 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo } //check exec result - commandCheckRes := "bash -c \"[[ $result -eq 0 ]] && echo success || ls failed;\"" + commandCheckRes := "bash -c \"[[ $result -eq 0 ]] && echo success || return -1;\"" command += commandCheckRes return command, nil