Cancelling Jobs

From HPCwiki
Revision as of 09:06, 16 June 2026 by Haars0011 (talk | contribs) (Phase 1 § 4 P1.4.8: split Cancelling Jobs out of Using Slurm § scancel (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To stop a job before it finishes — whether it is still waiting in the queue or already running — use scancel. Pass the job ID as the argument:

scancel 3401

Replace 3401 with the job ID returned by sbatch when you submitted, or the ID shown by squeue. SLURM signals the job to stop; you don't need to confirm it ran.

See also