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

[main] fix(agent): update the validate_job_state validator to support data_parser 0.0.40 #742

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 7, 2025

Backport 1d97b8c from #739.

…_parser 0.0.40 (#739)

This commit modifies the validator function `validate_job_state` from the `SlurmJobData` model
in order to support the data_parser 0.0.40.

Essentialy, in Slurm 24.11, the `--json` flag from the `scontrol show job` command uses the
data_parser 0.0.40. According to the official [documentation](https://slurm.schedmd.com/job_state_codes.html#overview),
the job flags can be returned alongside the job state, which can make the `job_state` key to have multiple keys.

(cherry picked from commit 1d97b8c)
@matheushent matheushent merged commit 4b0fa1f into main Mar 7, 2025
@matheushent matheushent deleted the backport-739-to-main branch March 7, 2025 19:21
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.

None yet

2 participants