From 441ea3688d5bde6c0f05ec5e950b9403ba050e8c Mon Sep 17 00:00:00 2001 From: lewis <747342561@qq.com> Date: Wed, 22 Dec 2021 11:47:19 +0800 Subject: [PATCH] add del status --- routers/repo/modelarts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index d2a094bc8..1578e2f28 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -274,7 +274,7 @@ func NotebookDel(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