-
Notifications
You must be signed in to change notification settings - Fork 223
Improved Slurm backend for job submission #5177
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
besserox
wants to merge
15
commits into
easybuilders:develop
Choose a base branch
from
besserox:new_slurm_backend
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
066931a
Improved Slurm backend for job submission
besserox ada769b
Fix warning
besserox f521c06
Fix comments
besserox 35f2340
Ensure that the job_polling_interval is at least 1s
besserox 2db8f70
Install a mocked version of 'sacct' in the parallel build tests
besserox 006c836
Force default value for job_polling_interval
besserox 94ddacf
Fix style
besserox e16aaf2
Enforce default value for job_polling_interval
besserox 307f873
Revert last commits than force the default value of job_polling_interval
besserox a9457da
Set required build options for testing
besserox 4080964
Mocked sacct command writes to stderr
besserox 0550b91
Better mocking of the sacct command
besserox 28168ca
Fix mocked sacct command
besserox 78859bd
Do not pritn debug output on stderr for mocked sacct
besserox d9c4286
Fix expected job specifications for test of Slurm backend
besserox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I see no default value for polling interval, what is it? It should be impossible to run with e.g. 0, else the code will spam SLURM. Some number of minutes would seem like a sensible minimum?
The comment above polling interval refers to maximum jobs, which is actually set below.
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 for checking:
job_polling_intervalis 30s and it is set in tools/options.py line 951.I have been running it many times with the default polling interval of 30s without any issue.
I believe it is fine to let the user use a low value if he wishes, even though I would not recommend it.
Uh oh!
There was an error while loading. Please reload this page.
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.
I see now the default value was already there -- I thought this was a new parameter, so was expecting to see it defined in this PR.
I'll resolve this thread (if I can).