Browse Source

提交代码,进行停止任务

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
bad9ced2b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/ai_model_convert.go

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

@@ -463,7 +463,7 @@ func DeleteModelConvert(ctx *context.Context) {
func StopModelConvert(ctx *context.Context) {
id := ctx.Params(":id")
log.Info("stop model convert start.id=" + id)
job, err := models.QueryModelConvertById(ctx.Query("ID"))
job, err := models.QueryModelConvertById(id)
if err != nil {
ctx.ServerError("Not found task.", err)
return


Loading…
Cancel
Save