lsf-python-api icon indicating copy to clipboard operation
lsf-python-api copied to clipboard

Array jobs in lsb_openjobinfo

Open yairher03 opened this issue 4 years ago • 1 comments

Hi,

Querying an array job with openjobinfo returns an error:

print(lsf.lsb_openjobinfo(887163[45],'', 'nxf30690','','', 0x02000)) Traceback (most recent call last): File "", line 1, in TypeError: 'int' object is not subscriptable

Is there a better way to query an specific arrayid in a job?

yairher03 avatar Oct 27 '20 19:10 yairher03

 examples]# python ./get_jobs_info.py
request below job's info: ['3530', '3531', '3532[1]']
retrieve cluster name : c101
request: jobIds=(3530,3531,3532[1])jobSouceClusterNames=(c101,c101,c101) options=1
found job number : 3
job <3530> from user (root) status is 4
job <3531> from user (root) status is 4
job <3532[1]> from user (root) status is 4

liyancn avatar Jun 09 '23 04:06 liyancn