Skip to main content

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​

OptionDescriptionMain Differences
-JSwitch only jobs with the specified job name.No difference.
-qSwitch only jobs in the specified queue.No difference.
-uSwitch only jobs submitted by the specified user.Supports specified user and all users, but does not support filtering by user group.
-VPrint the version number.No difference.
-hPrint command usage and exit.Provides more detailed help information.

job_id Filters​

FilterDescriptionMain Differences
Default (none)Switch one job: the most recently submitted job, or the most recently submitted job that matches other specified options.No difference
0Switch 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​

  1. Switch the specified job to the compute queue

    bswitch compute 11307
  2. Switch the most recently submitted job that matches the filter to the compute queue

    bswitch -u test compute
  3. Switch all jobs that match the filter to the compute queue

    bswitch -u test compute 0

Notes​

  • Only jobs in the pending state can be switched
  • For jobs in the running state, the system will output an error message indicating the operation is not supported