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

Avoid KeyError with warnings on old unsupported Slurm version #345

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

rezib
Copy link
Contributor

@rezib rezib commented Aug 30, 2024

Also log clear error message to mention unsupported Slurm version.

fix #316

Detect absence of warnings key in slurmrestd reponses and emit warning
log instead of crashing.

fix #316
Check Slurm version as returned by slurmrestd against hard-coded minimal
version and log error if not greater or equal. This should help users to
understand the status with old Slurm versions with clear error message
rather than weird and unexpected behaviors.
@rezib rezib added this to the v3.2.0 milestone Aug 30, 2024
@rezib rezib self-assigned this Aug 30, 2024
@rezib rezib merged commit c44206f into main Aug 30, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2024
@rezib rezib deleted the pr/issue-316 branch August 30, 2024 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError with unsupported Slurm version
1 participant