Browse Source

Merge pull request '解决删除failed任务报错的问题' (#583) from sync_failed_status into V20211101

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/583
Reviewed-by: ychao_1983 <ychao_1983@sina.com>
tags/v1.21.12.1
ychao_1983 4 years ago
parent
commit
1455e0ebab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/cloudbrain.go

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

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

if task.Status != string(models.JobStopped) {
if task.Status != string(models.JobStopped) && task.Status != string(models.JobFailed){
log.Error("the job(%s) has not been stopped", task.JobName, ctx.Data["msgID"])
ctx.ServerError("the job has not been stopped", errors.New("the job has not been stopped"))
return


Loading…
Cancel
Save