| @@ -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 | Description: algorithmId, // temporarily set reponame contained in the algorithmId to desc for missing taskdetail's reponame | ||||
| JobType: TRAIN, | JobType: TRAIN, | ||||
| Cluster: C2NET, | Cluster: C2NET, | ||||
| DisplayJobName: TRAIN + UNDERSCORE + utils.RandomString(10), | |||||
| DisplayJobName: strings.ToLower(TRAIN + UNDERSCORE + utils.RandomString(10)), | |||||
| ComputeSource: computeSource, | ComputeSource: computeSource, | ||||
| SpecId: int(specId), | SpecId: int(specId), | ||||
| BranchName: branchName, | BranchName: branchName, | ||||
| @@ -16,19 +16,20 @@ package constants | |||||
| // 任务状态类型 | // 任务状态类型 | ||||
| const ( | const ( | ||||
| Saved = "Saved" | |||||
| Running = "Running" | |||||
| WaitDelete = "WaitDelete" | WaitDelete = "WaitDelete" | ||||
| Deleted = "Deleted" | Deleted = "Deleted" | ||||
| Completed = "Completed" | |||||
| Succeeded = "Succeeded" | |||||
| Failed = "Failed" | |||||
| WaitRestart = "WaitRestart" | WaitRestart = "WaitRestart" | ||||
| WaitPause = "WaitPause" | WaitPause = "WaitPause" | ||||
| WaitStart = "WaitStart" | 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" //等待中 | |||||
| ) | ) | ||||