Cancel Running Job
A 3-step recipe with IBM Quantum. We can help you get access.
Recipe · 3 steps
Cancel Running Job
with IBM Quantum
Cancel a job if it is still cancellable, then confirm the outcome.
- Read the job's current status and branch on whether it is still in a cancellable Queued or Running state.
- Issue a cancel request for the still-running job. A 204 confirms the cancellation was accepted.
- Re-read the job to confirm its status transitioned out of the running state after the cancel request.
What you'll need to have ready
- accessToken: IBM Cloud IAM bearer token used in the Authorization header.
- serviceCrn: IBM Cloud Service CRN identifying the Qiskit Runtime instance.
- apiVersion: API version date sent in the IBM-API-Version header (e.g. 2026-03-15).
- jobId: Identifier of the job to inspect and cancel.
For your developer
Arazzo workflow ibm-quantum:cancel-running-job, 3 operations: get_job → cancel_job_jid → get_job. Specs on APIs.io.