Method description
Changes priority of a job.
Note: This API can be called only when the job is in Stopped or Failed state.
Parameter description
Parameter | Type | Description |
---|---|---|
jobId | String | Job ID |
priority | int | Priority of a job. The value is an integer ranging from 0 to 1000. Priority increases with the value. |
Response description
If modification succeeds, a ChangeJobResponse instance is returned.
If modification fails, a ClientException is thrown.
Sample code
try{
ChangeJobResponse response = client.changeJobPriority("job-0101010299123",2);
//Modification succeeded
}catch(ClientException e){
e.printStackTrace();
//Modification failed
}