|
|
@@ -345,6 +345,9 @@ func NotebookManage(ctx *context.Context) { |
|
|
} |
|
|
} |
|
|
} else if action == models.ActionRestart { |
|
|
} else if action == models.ActionRestart { |
|
|
ctx.CheckWechatBind() |
|
|
ctx.CheckWechatBind() |
|
|
|
|
|
if ctx.Written() { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
if task.Status != string(models.ModelArtsStopped) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsCreateFailed) { |
|
|
if task.Status != string(models.ModelArtsStopped) && task.Status != string(models.ModelArtsStartFailed) && task.Status != string(models.ModelArtsCreateFailed) { |
|
|
log.Error("the job(%s) is not stopped", task.JobName, ctx.Data["MsgID"]) |
|
|
log.Error("the job(%s) is not stopped", task.JobName, ctx.Data["MsgID"]) |
|
|
resultCode = "-1" |
|
|
resultCode = "-1" |
|
|
|