Modify pending jobs (bmod)
About this task
If your submitted jobs are pending (bjobs shows the job in
PEND
state), you can modify job submission parameters. You can also modify entire
job arrays or individual elements of a job array.
Procedure
Modify the service class of a job
About this task
You can attach or detach a service class of a job after the job has been submitted.
- Use -sla with other bmod options
- Move job array elements from one service class to another, only entire job arrays
- Modify the service class of jobs that are already attached to a job group
Procedure
Modify a job submitted to a job group
About this task
You can modify your own job groups and job groups that other users create under your job groups. The LSF administrator can modify job groups of all users.
The command bmod -g cannot be combined with other bmod options. It can only operate on pending jobs.
It cannot operate on running or finished jobs.
You cannot move job array elements from one job group to another, only entire job arrays. A job array can only belong to one job group at a time.
You cannot modify the job group of a job that is attached to a service class.
Procedure
For example, to move job 105 to the job group /risk_group/portfolio2/monthly
,
run bmod -g /risk_group/portfolio2/monthly 105.
Like the bsub -g command, if the job group does not exist, LSF creates it.
Modify the swap limit of a pending job
Before you begin
If a queue swap limit is defined, the value here cannot be greater than the value set for the queue.
Procedure
Results
If the job uses more than the new swap limit, the job is killed.