The "scancel" command in the SLURM workload manager is used to cancel or signal job steps or entire job allocations. Here is the command usage and options explained:

Usage: scancel [OPTIONS] [JOBID]

Options: -h, --help show this help message and exit -b, --batch submit batch jobs -i, --immediate cancel immediately -u USER, --user=USER cancel jobs of the specified user -s SIGNAL, --signal=SIGNAL send a signal to the job steps -n NAME, --name=NAME cancel jobs with the specified name -a, --all cancel all jobs -t TIME, --time=TIME cancel jobs older than the specified time -p PARTITION, --partition=PARTITION cancel jobs in the specified partition -q, --quiet suppress informational messages -v, --verbose display additional diagnostic information

The JOBID argument can be a single job ID or a range of job IDs. It can also be a job name or a user name.

Some examples of scancel usage:

  1. Cancel a specific job with ID 12345: scancel 12345

  2. Cancel all jobs of a specific user: scancel -u username

  3. Cancel all jobs in a specific partition: scancel -p partition_name

  4. Cancel all jobs older than 1 hour: scancel -t 1:00:00

  5. Cancel all jobs with a specific name: scancel -n job_name

These are just a few examples of how to use the scancel command. For more details and options, you can refer to the SLURM documentation or use "scancel --help" command in your Ubuntu system

Ubuntu系统slurm scancel --help

原文地址: https://www.cveoy.top/t/topic/hHb3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录