qiskit_serverless.core.Job¶
- class Job(job_id, job_client, raw_data=None)[source]¶
Job.
Job class for async script execution.
- Parameters:
job_id (
str
) – if of the jobjob_client (
BaseJobClient
) – job client
- __init__(job_id, job_client, raw_data=None)[source]¶
Job class for async script execution.
- Parameters:
job_id (
str
) – if of the jobjob_client (
BaseJobClient
) – job client
Methods
__init__
(job_id, job_client[, raw_data])Job class for async script execution.
filtered_logs
(**kwargs)Returns logs of the job.
in_terminal_state
()Checks if job is in terminal state
logs
()Returns logs of the job.
result
([wait, cadence, verbose, maxwait])Return results of the job. :type wait: :param wait: flag denoting whether to wait for the job result to be populated before returning :type cadence: :param cadence: time to wait between checking if job has been terminated :type verbose: :param verbose: flag denoting whether to log a heartbeat while waiting for job result to populate.
status
()Returns status of the job.
stop
([service])Stops the job from running.