PySlurm / pyslurm

Python Interface to Slurm
https://pyslurm.github.io
GNU General Public License v2.0
474 stars 116 forks source link

pyslurm throw KeyError 5039 when statistics().get() called #284

Closed sterni1971 closed 1 year ago

sterni1971 commented 1 year ago

Details

Suddenly, my monitor script died after running without any issues for the last weeks. Steps to reproduce:

import pyslurm sdiag = pyslurm.statistics() sdiag.get() Traceback (most recent call last): File "", line 1, in File "pyslurm/pyslurm.pyx", line 4497, in pyslurm.pyslurm.statistics.get File "pyslurm/pyslurm.pyx", line 4556, in pyslurm.pyslurm.statistics.get File "pyslurm/pyslurm.pyx", line 4837, in pyslurm.pyslurm.statistics.__rpc_num2string KeyError: 5039

Seems to be similar to https://github.com/PySlurm/pyslurm/issues/101 :-)

sterni1971 commented 1 year ago

It should be fixed here https://github.com/PySlurm/pyslurm/commit/61d4740c4c2e812e4983ab9558d1d23060b93c7f

tazend commented 1 year ago

Hi @sterni1971

The commit you mentioned is already included in the latest release for 22.05. You can use the 22.05 branch :)