Skip to content

Fix job status 'broken' with slurm when job is in fact not broken #183

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bernlu
Copy link
Collaborator

@bernlu bernlu commented Feb 26, 2025

This issue is caused by job names with spaces in them - in that case output parsing was wrong. Fixed by just not querying for the name since it is not used at all.

@bernlu bernlu requested a review from c-bebop February 26, 2025 14:06
Copy link
Collaborator

@c-bebop c-bebop left a comment

Choose a reason for hiding this comment

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

Looks good, just needs some adaptation/safety check.

for entry in output:
entry_jobid = entry[0]
entry_state = entry[4]
entry_state = entry[1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this require that len(output) >= 2?

@@ -0,0 +1,16 @@
simex e purge --failed -f
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps use an interpreter line here?:

#!/bin/bash

Copy link
Collaborator

Choose a reason for hiding this comment

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

What's with the tests/examples/slurm-pr-183 folder structure? Do you want to leave it as this? Or what would be the actual folder you want to put this in?

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.

2 participants