Batch / Client / update_service_job

update_service_job

Batch.Client.update_service_job(**kwargs)

Updates the priority of a specified service job in an Batch job queue.

See also: AWS API Documentation

Request Syntax

response = client.update_service_job(
    jobId='string',
    schedulingPriority=123
)
Parameters:
  • jobId (string) –

    [REQUIRED]

    The Batch job ID of the job to update.

  • schedulingPriority (integer) –

    [REQUIRED]

    The scheduling priority for the job. This only affects jobs in job queues with a quota-share or fair-share scheduling policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority within a share.

    The minimum supported value is 0 and the maximum supported value is 9999.

Return type:

dict

Returns:

Response Syntax

{
    'jobArn': 'string',
    'jobName': 'string',
    'jobId': 'string'
}

Response Structure

  • (dict) –

    • jobArn (string) –

      The Amazon Resource Name (ARN) for the job.

    • jobName (string) –

      The name of the job.

    • jobId (string) –

      The unique identifier for the job.

Exceptions