获取作业描述
get_job_description
说明
获取作业提交时的描述信息
参数说明:
参数 | 类型 | 描述 |
---|---|---|
job | CreateResponse object, str | 作业标识符 |
返回值说明:
说明
get_job_description方法将返回一个 GetResponse 对象, GetResponse 封装了JobDescription的所有接口。JobDescription的接口和属性请参考4.1 create_job接口中的介绍。
e.g.
try:
# Get a Client object.
client = Client(REGION, access_key_id, access_key_secret)
# Job ID.
job = "job-xxxx"
# Get run-time infromation of the job.
job_desc = client.get_job_description(job)
print(job_desc.Name, job_desc.Description)
except ClientError as e:
print(e)