Browse Source

Merge pull request '增加云脑2任务可删除状态' (#578) from del_modelarts into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/578
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/579/head
ychao_1983 3 years ago
parent
commit
e8ff16b159
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/cloudbrain.go

+ 1
- 1
models/cloudbrain.go View File

@@ -679,7 +679,7 @@ func GetCloudbrainByName(jobName string) (*Cloudbrain, error) {
}

func CanDelJob(isSigned bool, user *User, job *CloudbrainInfo) bool {
if !isSigned || job.Status != string(JobStopped) {
if !isSigned || (job.Status != string(JobStopped) && job.Status != string(ModelArtsStartFailed) && job.Status != string(ModelArtsCreateFailed)){
return false
}
repo, err := GetRepositoryByID(job.RepoID)


Loading…
Cancel
Save