Browse Source

update openi

pull/538/head
tzwang 2 months ago
parent
commit
21a7258d38
2 changed files with 12 additions and 11 deletions
  1. +1
    -1
      internal/storeLink/openi.go
  2. +11
    -10
      pkg/constants/task.go

+ 1
- 1
internal/storeLink/openi.go View File

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


+ 11
- 10
pkg/constants/task.go View File

@@ -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" //等待中
)

Loading…
Cancel
Save