Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to parse req_mem results in crash #22

Open
dawilluz opened this issue Jun 17, 2022 · 0 comments
Open

Failure to parse req_mem results in crash #22

dawilluz opened this issue Jun 17, 2022 · 0 comments

Comments

@dawilluz
Copy link

dawilluz commented Jun 17, 2022

seff-array.py:509
req_mem = float(data[0].split("|")[4][0:-1]) # remove M unit, convert to float

An extra character is being returned by sacct in the ReqMem field. Instead of "1M" it returns "1Mc" or "1Me" I haven't identified the cause for this in sacct but created a workaround by changing "-1" to "-2". A more reliable fix would be to strip alpha characters prior to converting to float.

SLURM 20.11.9-1.el7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant