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

omit header in squeue output #220

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

trz42
Copy link
Contributor

@trz42 trz42 commented Oct 4, 2023

Adds --noheader argument to squeue command and then parses all output lines to determine current jobs.

Fixes #219

for i in range(2, len(lines)):
# Note, all output lines of squeue are processed because we run it with
# --noheader.
for i in range(0, len(lines)):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't for line in lines be cleaner then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 448dcfa

@boegel boegel merged commit c09bccd into EESSI:develop Oct 5, 2023
7 checks passed
@boegel boegel added this to the 0.1.1 milestone Nov 14, 2023
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

Successfully merging this pull request may close these issues.

Issue parsing the output of squeue
3 participants