The cluster-side slurm.py module performs subprocess.run() with a command line like:
$ squeue --array --json --user %s"
The "array IDs" for a given job are returned in the json - usually individually or as ranges with a '-'
A third option is to see comma-delimited array ranges: "4,8,12-15,27" as example.
These comma-delimited segments are now handled through iteration over the comma-delimited sub-ranges.
The cluster-side slurm.py module performs subprocess.run() with a command line like:
$ squeue --array --json --user %s"
The "array IDs" for a given job are returned in the json - usually individually or as ranges with a '-'
A third option is to see comma-delimited array ranges: "4,8,12-15,27" as example.
These comma-delimited segments are now handled through iteration over the comma-delimited sub-ranges.