Linux command
scancel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Cancel
scancel [job_id]
Example
scancel -u [username]
Example
scancel -t PENDING
Example
scancel --name [job_name]
Example
scancel [job_id]_[task_id]
Signal
scancel -s [SIGTERM] [job_id]
说明
scancel cancels pending or running jobs in a Slurm cluster. Jobs can be cancelled by numeric ID, filtered by user, partition, state, or job name. Multiple job IDs can be specified on the command line. For job arrays, individual tasks can be cancelled using the `job_id_task_id` notation. Cancelled jobs are terminated and resources are released back to the cluster.
参数
- -u, --user _username_
- Cancel all jobs owned by user
- -t, --state _state_
- Cancel jobs in specified state (PENDING, RUNNING, SUSPENDED)
- -n, --name _name_
- Cancel jobs with specified name
- -p, --partition _name_
- Cancel jobs in specified partition
- -s, --signal _signal_
- Send signal instead of SIGKILL
- -A, --account _account_
- Cancel jobs under specified account
- -q, --qos _qos_
- Cancel jobs with specified QOS
- -i, --interactive
- Confirm each cancellation
- -v, --verbose
- Verbose output
FAQ
What is the scancel command used for?
scancel cancels pending or running jobs in a Slurm cluster. Jobs can be cancelled by numeric ID, filtered by user, partition, state, or job name. Multiple job IDs can be specified on the command line. For job arrays, individual tasks can be cancelled using the `job_id_task_id` notation. Cancelled jobs are terminated and resources are released back to the cluster.
How do I run a basic scancel example?
Run `scancel [job_id]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --user _username_ do in scancel?
Cancel all jobs owned by user