-
Notifications
You must be signed in to change notification settings - Fork 192
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
slurm plugin: always raise for non-zero exit code #4332
slurm plugin: always raise for non-zero exit code #4332
Conversation
1fc7951
to
ea2e5a1
Compare
Codecov Report
@@ Coverage Diff @@
## develop #4332 +/- ##
===========================================
+ Coverage 79.10% 79.14% +0.05%
===========================================
Files 468 468
Lines 34614 34616 +2
===========================================
+ Hits 27378 27395 +17
+ Misses 7236 7221 -15
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Some textual changes suggested
Thanks! |
Prior to this change, cases where squeue would return a non-zero exit code but an empty stderr would not lead to a SchedulerError. This is fixed by adapting the slurm joblist command such that it is always expected to produce exit code zero, and raising whenever a non-zero exit code is encountered.
19b1f2d
to
199100f
Compare
@giovannipizzi fair point - added the test, thanks for pointing out where it should go (and indeed there was still as slight mistake) |
199100f
to
dee4a57
Compare
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.
Thanks!
potentially fixes #4326
Prior to this change, cases where squeue would return a non-zero exit
code but an empty stderr would not lead to a SchedulerError.
This is fixed by adapting the slurm joblist command such that it is
always expected to produce exit code zero, and raising whenever a
non-zero exit code is encountered.