-
Notifications
You must be signed in to change notification settings - Fork 141
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
Nexus: Add --user $USER to squeue command #3796
Conversation
What Slurm versions support the |
I found this running list of updates (https://github.com/SchedMD/slurm/blob/master/NEWSupdates). It does not mention CADES uses v20.02.4 and supports the Perhaps someone at Sandia could let us know if |
It looks to have been added to the longoptions of slurm in SchedMD/slurm@8483780 |
Thanks Paul, but I am correct that the commit there relates to "auto completion" functionality? And it looks to be commited in v21, however, Cori and CADES support the flag and use v20 |
It was added to the man page 5 months ago it appears Line 1362 of |
Can you just use |
Correction to my previous comment, it appears to show up in man page for the first time on Feb 2020 https://github.com/SchedMD/slurm/blob/cc6a1be5ee2cf0e1ac5a7c14a6df97023701e8e8/doc/man/man1/squeue.1 @ye-luo This might be okay, but will let Jaron weigh in |
Wearing my sometimes sysadmin hat, updating slurm is one of the last things i would want to do on a running system. So we can't rely on this --me feature being available or slurm being highly up to date => this can only be a nice to have and not overly important feature. I think Jaron is the decider here. Catching any errors would be wise. |
Just throwing out one other alternative that is worth chewing on. We could consider formatting squeue's output such that it only gives what nexus needs (jobid and status only?). Something like For instance,
Or something similar. The parsing done by Nexus will need a minor change as well |
I like the simplicity offered here, but I have to agree with Paul that the chance of breaking based on the local environment is too high. For the feature to be introduced, I think the current behavior with |
The underlying "issue" is not resolved unless we change the default behavior in some way. What users can run into (on Cori for instance) is some strange error like |
Perhaps |
The following command has been run on multiple machines at multiple sites execute('squeue --user=$USER') The tested machines and their results are:
The SLURM machines that Nexus supports: Edison (RETIRED) |
Good. I think we can proceed with a change to using Perhaps the logic should be:
|
Thank you @jtkrogel . pushed |
LGTM. Tests pass? |
Yes. 100% of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
Test this please |
Proposed changes
Adding flag
--me
to squeue command inmachines.py
. This prevents users from being forced to provide their usernames to avoid strange errors when other users format their job names in weird ways. This also resolves #2380What type(s) of changes does this code introduce?
Does this introduce a breaking change?
nxs-test
tests passWhat systems has this change been tested on?
Laptop. Fedora Linux
Checklist