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

Query for the pending job reason using squeue may fail and erroneously report the test job as a failure #3122

Closed
vkarak opened this issue Feb 22, 2024 · 0 comments · Fixed by #3123

Comments

@vkarak
Copy link
Contributor

vkarak commented Feb 22, 2024

Here's the test's stderr:

  * Reason: spawned process error: command 'squeue -h -j 12962 -o %r' failed with exit code 1:
--- stdout ---
--- stdout ---
--- stderr ---
slurm_load_jobs error: Invalid job id specified
--- stderr ---

In the past, squeue didn't fail if the passed job id didn't exist. The error comes from this part of the code:

completed = _run_strict('squeue -h -j %s -o %%r' % job.jobid)

We should also ignore squeue's failure and assume that job has finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant