All Products
Search
Document Center

Batch Compute:get_job_description

Last Updated:May 14, 2018

Description

Obtains the description of a submitted job.

Parameter description

Parameter Type Description
job CreateResponse object, str Job ID

Response description

The get_job_description method returns a GetResponse object, which encapsulates all interfaces of JobDescription.For more information about the interfaces and attributes of JobDescription, see Section 4.1 “create_job”.

Example

  1. try:
  2. # Get a Client object.
  3. client = Client(...
  4. ...
  5. # Job ID.
  6. job = "job-xxxx"
  7. # Get run-time infromation of the job.
  8. job_desc = client.get_job_description(job)
  9. print (job_desc.Name, job_desc.Description)
  10. except ClientError, e:
  11. print(e)