qiskit_serverless.core.Job¶
- class Job(job_id, job_service, raw_data=None)[source]¶
Job.
Job class for async script execution.
- Parameters:
job_id (
str
) – if of the jobclient – client
- __init__(job_id, job_service, raw_data=None)[source]¶
Job class for async script execution.
- Parameters:
job_id (
str
) – if of the jobclient – client
Methods
__init__
(job_id, job_service[, raw_data])Job class for async script execution.
cancel
([service])Cancels the job.
error_message
()Returns the execution error message.
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.