forked from JointCloud/pcm-hpc
bug fix
This commit is contained in:
parent
fc9a9d1950
commit
af824802cf
|
@ -229,7 +229,7 @@ type GetJobResp struct {
|
|||
|
||||
// CancelJobReq 作业取消请求体
|
||||
type CancelJobReq struct {
|
||||
JobId int64 //作业id
|
||||
JobId string //作业id
|
||||
}
|
||||
|
||||
type Job interface {
|
||||
|
|
|
@ -103,7 +103,7 @@ func (j *job) SubmitJob(jobOptions JobOptions) (submitJobResp SubmitJobResp, err
|
|||
}
|
||||
|
||||
func (j *job) CancelJob(cancelJobReq CancelJobReq) error {
|
||||
url := j.client.url + "/slurm/" + j.client.clientVersion + fmt.Sprintf("/job/{%s}", cancelJobReq.JobId)
|
||||
url := j.client.url + "/slurm/" + j.client.clientVersion + fmt.Sprintf("/job/%s", cancelJobReq.JobId)
|
||||
method := "DELETE"
|
||||
|
||||
client := &http.Client{}
|
||||
|
|
Loading…
Reference in New Issue