Skip to main content

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

OptionDescriptionExample
-u, --user=user_nameCancel jobs for a specific userscancel -u user1
-n, --name=job_name Cancel by job namescancel -n jobname
-p, --partition=partitionCancel by partitionscancel -p gpu
-t, --state=statesCancel by statescancel -t PENDING
-i, --interactiveInteractive confirmationscancel -i 12345
-v, --verbose Verbose modescancel -v 12345
-Q, --quiet Quiet modescancel -Q 12345
-w, --nodelist Cancel by nodescancel -w node1
-b, --batchCancel batch jobsscancel --batch 12345
-s, --signal=name Send a specific signal; default is SIGKILLscancel --signal=USR1 12345