ICC Home Privacy and Legal Notice LC User Documents Banner


SLURM Reference Manual

SCANCEL Examples


To cancel the tenth job step of SLURM job 4321 (and release no resources), then cancel the entire job 4489 (and release its allocated resources).
Use a simple SCANCEL execute line with no options and a space-delimited list of jobs/steps to cancel.
User: scancel 4321.10 4489


To cancel all pending SLURM jobs owned by you (here, user JFK) that were slated to run in the local PBATCH partition.
Use an SCANCEL filter option to impose each of the three conditions on job selection (their constraints are conjoined), then omit any overt list of jobs to signal. Remember, nonroot uses can only cancel their own jobs.
User: scancel --state=pending --user=jfk --partition=pbatch

Navigation Links: [ Document List ] [ HPC Home ] [ Next ]