|
|
@@ -539,7 +539,7 @@ func NotebookDel(ctx *context.Context) { |
|
|
|
var listType = ctx.Query("debugListType") |
|
|
|
task := ctx.Cloudbrain |
|
|
|
|
|
|
|
if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped) { |
|
|
|
if task.Status != string(models.ModelArtsCreateFailed) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsStopped) && task.Status != string(models.ModelArtsDeleted) { |
|
|
|
log.Error("the job(%s) has not been stopped", task.JobName) |
|
|
|
ctx.RenderWithErr("the job has not been stopped", tplDebugJobIndex, nil) |
|
|
|
return |
|
|
|