Browse Source

Merge remote-tracking branch 'origin/V20211101' into zouap

tags/v1.21.12.1
zouap 4 years ago
parent
commit
01894c3e65
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 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) 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")) ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped"))
return return


Loading…
Cancel
Save