Skip to content

squeue.update_squeue() fails when an array job is running #44

@dlay97

Description

@dlay97

I have an array job pending, so the job ID is of the form integer_[low-high], which can't be cast as integer. Presumably a similar issue will be raised when parsing array jobs, which are of the form integer_arrayID. See the following stack trace:

slurm.squeue.update_squeue()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/mnt/home/laydanie/.conda/envs/default/lib/python3.13/site-packages/simple_slurm/squeue.py", line 30, in update_squeue
self.jobs = self._parse_output(result.stdout)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/mnt/home/laydanie/.conda/envs/default/lib/python3.13/site-packages/simple_slurm/squeue.py", line 53, in parse_output
jobs[int(row["JOBID"])] = row
~~~^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '57829110
[5-100]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions