Browse Source

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

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/588
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
pull/589/head
ychao_1983 3 years ago
parent
commit
ae799dd129
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/modelarts.go

+ 1
- 1
routers/repo/modelarts.go View File

@@ -231,7 +231,7 @@ func ModelArtsDel(ctx *context.Context) {
return
}

if task.Status != string(models.JobStopped) {
if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped){
log.Error("the job(%s) has not been stopped", task.JobName)
ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped"))
return


Loading…
Cancel
Save