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: \n\nUsage: scancel [OPTIONS] [JOBID]\n\nOptions:\n -h, --help show this help message and exit\n -b, --batch submit batch jobs\n -i, --immediate cancel immediately\n -u USER, --user=USER cancel jobs of the specified user\n -s SIGNAL, --signal=SIGNAL\n send a signal to the job steps\n -n NAME, --name=NAME cancel jobs with the specified name\n -a, --all cancel all jobs\n -t TIME, --time=TIME cancel jobs older than the specified time\n -p PARTITION, --partition=PARTITION\n cancel jobs in the specified partition\n -q, --quiet suppress informational messages\n -v, --verbose display additional diagnostic information\n\nThe 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.\n\nSome examples of scancel usage:\n\n1. Cancel a specific job with ID 12345:\n scancel 12345\n\n2. Cancel all jobs of a specific user:\n scancel -u username\n\n3. Cancel all jobs in a specific partition:\n scancel -p partition_name\n\n4. Cancel all jobs older than 1 hour:\n scancel -t 1:00:00\n\n5. Cancel all jobs with a specific name:\n scancel -n job_name\n\nThese 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.


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

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