ibm-quantum · Arazzo Workflow
IBM Quantum Cancel Running Job
Version 1.0.0
Check a job's status and cancel it only if it is still queued or running.
Provider
Workflows
cancel-running-job
Cancel a job if it is still cancellable, then confirm the outcome.
Reads a job's status, cancels it when it is queued or running, and re-reads the job to confirm the cancellation.
1
getJobStatus
get_job
Read the job's current status and branch on whether it is still in a cancellable Queued or Running state.
2
cancelJob
cancel_job_jid
Issue a cancel request for the still-running job. A 204 confirms the cancellation was accepted.
3
confirmCancelled
get_job
Re-read the job to confirm its status transitioned out of the running state after the cancel request.