Reruns one or more jobs.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RerunJobs

The operation that you want to perform. Set the value to RerunJobs.

ClusterId String Yes ehpc-sh-3VeFyR****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

Jobs String Yes [{"Id":"1.scheduler"}]

The list of jobs that you want to run. Maximum number of jobs: 100. Minimum number of jobs: 1.

Format: [{"Id": "0.sched****"},{"Id": "1.sched****"}]. Separate multiple jobs with commas (,).

You can call the ListJobs operation to query the job ID.

Note You can rerun only jobs that are in the RUNNING or QUEUED state.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=RerunJobs
&ClusterId=ehpc-sh-3VeFyR****
&Jobs=[{"Id":"1.scheduler"}]
&<Common request parameters>

Sample success responses

XML format

<DeleteJobsResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
</DeleteJobsResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"
}

Error codes

HttpCode Error code Error message Description
406 AgentError.Job.RerunFailure Failed to re-run jobs: %s The error message returned because the following jobs have failed to be rerun: {}.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

For a list of error codes, visit the API Error Center.