LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 135
Managing Jobs
You cannot move job array elements from one job group to another, only entire
job arrays. If any job array elements in a job array are running, you cannot move
the job array to another group. A job array can only belong to one job group at
a time.
You cannot modify the job group of a job attached to a service class.
bhist -l shows job group modification information:
bhist -l 105
Job <105>, User <user1>, Project <default>, Job Group </risk_group>, Command <myjob>
Wed May 14 15:24:07: Submitted from host <hostA>, to Queue <normal>, CWD
<$HOME/lsf51/5.1/sparc-sol7-64/bin>;
Wed May 14 15:24:10: Parameters of Job are changed:
Job group changes to: /risk_group/portfolio2/monthly;
Wed May 14 15:24:17: Dispatched to <hostA>;
Wed May 14 15:24:17: Starting (Pid 8602);
...
Terminate jobs (bkill)
1 Use the -g option of bkill and specify a job group path to terminate jobs in a
job group.
bkill -g /risk_group 106
Job <106> is being terminated
2 Use job ID 0 (zero) to terminate all jobs in a job group:
bkill -g /risk_group 0
Job <1413> is being terminated
Job <1414> is being terminated
Job <1415> is being terminated
Job <1416> is being terminated
bkill
only kills jobs in the job group you specify. It does not kill jobs in lower
level job groups in the path. For example, jobs are attached to job groups
/risk_group and /risk_group/consolidate:
bsub -g /risk_group myjob
Job <115> is submitted to default queue <normal>.
bsub -g /risk_group/consolidate myjob2
Job <116> is submitted to default queue <normal>.
The following bkill command only kills jobs in /risk_group, not the
subgroup
/risk_group/consolidate:
bkill -g /risk_group 0
Job <115> is being terminated
To kill jobs in /risk_group/consolidate, specify the path to the
consolidate job group explicitly:
bkill -g /risk_group/consolidate 0
Job <116> is being terminated