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