Platform LSF Administration Guide Version 6.2
Switching Jobs from One Queue to Another
Administering Platform LSF
146
Switching Jobs from One Queue to Another
You can use the command bswitch to change jobs from one queue to another. This is
useful if you submit a job to the wrong queue, or if the job is suspended because of
queue thresholds or run windows and you would like to resume the job.
Switching a single job
Run bswitch to move pending and running jobs from queue to queue.
In the following example, job 5309 is switched to the
priority queue:
%
bswitch priority 5309
Job <5309> is switched to queue <priority>
% bjobs -u all
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
5308 user2 RUN normal hostA hostD /job500 Oct 23 10:16
5309 user2 RUN priority hostA hostB /job200 Oct 23 11:04
5311 user2 PEND night hostA /job700 Oct 23 18:17
5310 user1 PEND night hostB /myjob Oct 23 13:45
Switching all jobs
Run bswitch -q from_queue to_queue 0 to switch all the jobs in a queue to
another queue. The example below selects jobs from the
night queue and switches
them to the
idle queue.
The
-q option is used to operate on all jobs in a queue. The job ID number 0 specifies
that all jobs from the night queue should be switched to the idle queue:
%
bswitch -q night idle 0
Job <5308> is switched to queue <idle>
Job <5310> is switched to queue <idle>