qai_hub.get_job

get_job(job_id, job_type=None)

Returns a job for a given id.

매개변수:
  • job_id (str) – id of a job.

  • job_type (Optional[JobType]) – Type of the job. If this is not None and the target job is not this type, this method will raise.

반환:

job – The job for the id.

반환 형식:

Job

예제

Get job and print its status. The job ID is an alphanumeric string starting with j that you can get from the job’s URL (/jobs/<job ID>).:

import qai_hub as hub

job = hub.get_job("jabc123")
status = job.get_status()