wait_for_final_state(timeout=None, wait=None, callback=None)¶
Wait until the job progresses to a final state such as
float]) – Seconds to wait for the job. If
None, wait indefinitely.
float]) – Seconds to wait between invoking the callback function. If
None, the callback function is invoked only if job status or queue position has changed.
Callback function invoked after each querying iteration. The following positional arguments are provided to the callback function:
job_id: Job ID
job_status: Status of the job from the last query.
In addition, the following keyword arguments are also provided:
IBMQJobTimeoutError – if the job does not reach a final state before the specified timeout.
- Return type