Browse Source

hpc cancel job

Former-commit-id: 27120c4506
pull/333/head
zhangwei 1 year ago
parent
commit
38357fcace
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      internal/handler/hpc/canceljobhandler.go

+ 2
- 5
internal/handler/hpc/canceljobhandler.go View File

@@ -1,6 +1,7 @@
package hpc package hpc


import ( import (
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
"net/http" "net/http"


"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
@@ -19,10 +20,6 @@ func CancelJobHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {


l := hpc.NewCancelJobLogic(r.Context(), svcCtx) l := hpc.NewCancelJobLogic(r.Context(), svcCtx)
err := l.CancelJob(&req) err := l.CancelJob(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.Ok(w)
}
result.HttpResult(r, w, nil, err)
} }
} }

Loading…
Cancel
Save