ezpz cancelโ๏ธ
Positional host sugar: ezpz cancel aurora 12345 โก ezpz cancel 12345 --remote aurora.
Cancel a queued or running job, locally or on a remote machine.
# Local (qdel / scancel)
ezpz cancel 8879044.aurora-pbs-0001
# Remote
ezpz cancel 8879044.aurora-pbs-0001 --remote aurora
Locally the scheduler is inferred from the hostname (PBS vs SLURM)
and the command runs qdel or scancel accordingly. Remotely the same
inference is applied to the --remote host; override it with
--scheduler when a host's scheduler cannot be inferred.
Remote cancellation tries SSH first (qdel/scancel on the login node)
and falls back to the IRI DELETE /compute/cancel/{resource_id}/{job_id}
endpoint only when the SSH path fails for a transport-class reason. A
scheduler rejection (e.g. "Unknown Job Id") is never retried on another
backend. See Remote submission for the
fallback contract.
Optionsโ๏ธ
| Flag | Description |
|---|---|
JOB_ID (positional, required) |
Job id to cancel |
--remote HOST |
Host to cancel on (SSH name or ALCF resource). Omit for local qdel/scancel. |
--backend {auto,ssh,iri} |
Remote backend with --remote (default: auto) |
--scheduler {PBS,SLURM} |
Override scheduler auto-detection |
--dry-run |
Print what would run without cancelling |
Examplesโ๏ธ
Local cancelโ๏ธ
Remote cancel via IRIโ๏ธ
Preview without cancellingโ๏ธ
ezpz cancel 8879044 --remote aurora --dry-run
# would cancel 8879044 on aurora via auto (scheduler=auto)
Force a schedulerโ๏ธ
Outputโ๏ธ
On success:
On failure the process exits non-zero with the backend's error:
Exit codesโ๏ธ
0โ cancelled (or--dry-run).- Non-zero โ
qdel/scancelor IRIDELETEfailed; the scheduler/API message is printed on stderr.
See alsoโ๏ธ
ezpz statusโ check a job's state before cancellingezpz submitโ queue jobs- Remote submission โ backends and auth