diff --git a/internal/storeLink/openi.go b/internal/storeLink/openi.go index 7ab1a454..57ce1364 100644 --- a/internal/storeLink/openi.go +++ b/internal/storeLink/openi.go @@ -240,7 +240,7 @@ func (o *OpenI) SubmitTask(ctx context.Context, imageId string, cmd string, envs Description: algorithmId, // temporarily set reponame contained in the algorithmId to desc for missing taskdetail's reponame JobType: TRAIN, Cluster: C2NET, - DisplayJobName: TRAIN + UNDERSCORE + utils.RandomString(10), + DisplayJobName: strings.ToLower(TRAIN + UNDERSCORE + utils.RandomString(10)), ComputeSource: computeSource, SpecId: int(specId), BranchName: branchName, diff --git a/pkg/constants/task.go b/pkg/constants/task.go index e9fb5841..ff4ce490 100644 --- a/pkg/constants/task.go +++ b/pkg/constants/task.go @@ -16,19 +16,20 @@ package constants // 任务状态类型 const ( - Saved = "Saved" - Running = "Running" WaitDelete = "WaitDelete" Deleted = "Deleted" - Completed = "Completed" - Succeeded = "Succeeded" - Failed = "Failed" WaitRestart = "WaitRestart" WaitPause = "WaitPause" WaitStart = "WaitStart" - Pending = "Pending" - Stopped = "Stopped" - Deploying = "Deploying" - Cancelled = "Cancelled" - Waiting = "Waiting" + + Completed = "Completed" //已完成 + Succeeded = "Succeeded" //成功 + Failed = "Failed" //失败 + Saved = "Saved" //已保存 + Running = "Running" //运行中 + Pending = "Pending" //挂起 + Stopped = "Stopped" //已停止 + Deploying = "Deploying" //部署中 + Cancelled = "Cancelled" //已取消 + Waiting = "Waiting" //等待中 )