qai_hub.get_job

get_job(job_id, job_type=None)

Returns a job for a given id.

Parameters:
  • 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.

Returns:

job – The job for the id.

Return type:

Job

Examples

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()