cancel_job
Cancel a running script or sweep job by ID at its next await, so cleanup completes and the job reports cancelled; already-ended jobs stay unchanged.
Instructions
Cancel a job run_script_job or capture_sweep started, at its next await. It reads cancelling until its own cleanup, its finally blocks, has run, then cancelled: get_job(job_id, wait=10) reads it. A job whose code caught the cancel, as a bare except does, runs on: call cancel_job again. A sweep puts the stage back and keeps the shots it took, in its manifest. A job that has ended is left as it is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job to cancel, as run_script_job or capture_sweep answered it, such as j3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |