Job Queue

exception JobNotFoundError
class QmPendingJob(job_id, machine: qm.QuantumMachine.QuantumMachine, qmm: qm.QuantumMachinesManager.QuantumMachinesManager)

Class describing a job in the execution queue

cancel() → bool

Removes this job from the queue

Returns

Example:

>>> pending_job.cancel()
id() → str
Returns

The id of the job

position_in_queue() → Optional[int]

Returns the current position of the job in the queue

Example:

>>> pending_job.position_in_queue()
wait_for_execution(timeout: Optional[float] = None)qm.QmJob.QmJob

Waits for a job to complete or until the timeout has elapsed

Parameters

timeout – Timeout (in seconds) for this operation

Returns