scancel
Overview
scancel is the command tool in Slurm for cancelling submitted jobs:
- Can cancel pending (PENDING) or running (RUNNING) jobs
- Supports bulk job cancellation
- Can cancel regular jobs, array jobs, and job steps
- Requires job owner or administrator privileges
Common Options
| Option | Description | Example |
|---|---|---|
-u, --user=user_name | Cancel jobs for a specific user | scancel -u user1 |
-n, --name=job_name | Cancel by job name | scancel -n jobname |
-p, --partition=partition | Cancel by partition | scancel -p gpu |
-t, --state=states | Cancel by state | scancel -t PENDING |
-i, --interactive | Interactive confirmation | scancel -i 12345 |
-v, --verbose | Verbose mode | scancel -v 12345 |
-Q, --quiet | Quiet mode | scancel -Q 12345 |
-w, --nodelist | Cancel by node | scancel -w node1 |
-b, --batch | Cancel batch jobs | scancel --batch 12345 |
-s, --signal=name | Send a specific signal; default is SIGKILL | scancel --signal=USR1 12345 |