bswitch
info
This command is supported starting from fsched-10.87.
Introduction
bswitch is used to switch an unfinished job from one queue to another.
Parameters
| Option | Description | Main Differences |
|---|---|---|
-J | Switch only jobs with the specified job name. | No difference. |
-q | Switch only jobs in the specified queue. | No difference. |
-u | Switch only jobs submitted by the specified user. | Supports specified user and all users, but does not support filtering by user group. |
-V | Print the version number. | No difference. |
-h | Print command usage and exit. | Provides more detailed help information. |
job_id Filters
| Filter | Description | Main Differences |
|---|---|---|
| Default (none) | Switch one job: the most recently submitted job, or the most recently submitted job that matches other specified options. | No difference |
| 0 | Switch multiple jobs: all jobs that match other specified options. | No difference |
| job_ID... | Switch one or more jobs with the specified id(s). | No difference |
| job_ID[index_list]... | Switch one or more jobs with the specified id(s) and index_list. | More accurate switch results output |
Examples
-
Switch the specified job to the
computequeuebswitch compute 11307 -
Switch the most recently submitted job that matches the filter to the
computequeuebswitch -u test compute -
Switch all jobs that match the filter to the
computequeuebswitch -u test compute 0
Notes
- Only jobs in the
pendingstate can be switched - For jobs in the
runningstate, the system will output an error message indicating the operation is not supported