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