Open ericfranz opened 7 years ago
Currently Active jobs handles jobs with job arrays without an issue.
If you try to create a job array through My Jobs, or try to use ood_core to get the status of a job array, there will be problems because bjobs $JOBID
, when the id is a job array, returns multiple rows, instead of a single row:
[efranz@somehost02 ~]$ bjobs 554997
JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
554997 efranz DONE short fromhost.osc compute030 *oarray[7] Apr 19 17:01
554997 efranz DONE short fromhost.osc compute030 *oarray[5] Apr 19 17:01
554997 efranz DONE short fromhost.osc compute030 *oarray[3] Apr 19 17:01
554997 efranz DONE short fromhost.osc compute030 *oarray[1] Apr 19 17:01
554997 efranz DONE short fromhost.osc compute030 *oarray[9] Apr 19 17:01
bsub -J "helloarray[1-10:2]" < helloarray.sh
It will probably cause issues if we try to create job arrays through My Jobs.
Currently for Active Jobs this is not an issue:
However, when we add LSF "extended attributes" that we show in the progressive disclosure pane in Active Jobs, we will run into a problem when calling adapter.info(jobid)
because if we are trying to see the details of job 9 in the job array but we have jobid set to 554998
instead of 554998[9]
then we won't get the Info object for the right job array.
Two possible solutions:
[#]
) we alter the job id to append [#
] to it i.e. so that for a job array instead of ID displaying 554998 5 times it would display 554998[1]
and 554998[3]
etc.:
┆Issue is synchronized with this Asana task by Unito