This commit is contained in:
zhangwei 2024-10-26 12:14:04 +08:00
parent fc9a9d1950
commit af824802cf
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ type GetJobResp struct {
// CancelJobReq 作业取消请求体
type CancelJobReq struct {
JobId int64 //作业id
JobId string //作业id
}
type Job interface {

View File

@ -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{}