Job
- class Job(owner, job_id, name, date, hub_version, options, verbose, job_type, in_progress_states)
abstract Job base class.
A job should not be constructed directly. It is constructed by the hub client through
qai_hub.submit_compile_job()
,qai_hub.submit_profile_job()
,qai_hub.submit_inference_job()
, orqai_hub.get_job()
.See also
CompileJob
,ProfileJob
,InferenceJob
- job_id
The job ID.
- Type:
str
- name
Name of this job
- Type:
str
- date
The time this job was submitted.
- Type:
datetime
- options
Options passed during the job submission.
- Type:
str
- disable_sharing()
Disable all sharing for this job.
- 回傳型別:
None
- get_sharing()
Get the list of email addresses of users that this job has been shared with.
- 回傳型別:
List
[str
]
- modify_sharing(add_emails=[], delete_emails=[])
Modifies the list of users that the job is shared with.
All assets (models, datasets, artifacts, etc.) associated with the job will also be shared. For inference and profile jobs, the corresponding compile and link jobs (if any) will also be shared.
- 回傳型別:
None
- set_name(job_name)
Sets the name of a job to the specified value.
- 回傳型別:
None
- property url: str
Returns the URL for the job.
- 回傳:
The URL for the job.
- 回傳型別:
str
- wait(timeout=None)
Block until this job finishes.
- 參數:
timeout (
Optional
[int
]) --If provided, a TimeoutError will be raised after waiting this many seconds.
If None, this client will not time out the job, meaning it will block an indefinite amount of time waiting for the job to finish.
HOWEVER, Qualcomm AI Hub will fail / time out any job a set amount of time after its creation. Therefore, even if timeout is None, the runtime of this method will still have a finite upper bound.
- 回傳:
The final, "finished" (SUCCESS or FAILED) status for this job.
- 回傳型別:
str
- 引發:
TimeoutError -- Raised only if a client-side timeout occurs, when param "timeout" != None. If the Qualcomm AI Hub server times out the job, this error will NOT be raised, and a FAILED job status will be returned instead.