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

feat(slurm_ops): add scontrol and clean up public exports #30

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

NucciTheBoss
Copy link
Member

@NucciTheBoss NucciTheBoss commented Sep 18, 2024

This PR adds the static method scontrol to _SlurmManagerBase, and it cleans up the public exports of the slurm_ops charm library to just be SlurmctldManager, SlurmdManager, SlurmdbdManager, SlurmrestdManager, and SlurmOpsError.

Closes #29

We now intend that you directly call the manager that you plan on using rather
than compose it yourself within the specific Slurm charm. This commit
makes the methods and classes that we want private have a underscore before
their name so that it is more obvious that it isn't intended to be a publicly
used object outside of the charm library.

Signed-off-by: Jason C. Nucciarone <[email protected]>
@NucciTheBoss NucciTheBoss added the enhancement New feature or request label Sep 18, 2024
Copy link
Contributor

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Really liking the cleanup of the exports, since it'll allow us to do major refactorings in the future without introducing breaking changes.

@NucciTheBoss
Copy link
Member Author

Looks good! Really liking the cleanup of the exports, since it'll allow us to do major refactorings in the future without introducing breaking changes.

Yes, it will be quite nice. The abstraction of deb vs snap is excellent 🤩

Will hold off on vbump since I still need to introduce some stuff to help with managing the cgroup configurations, but I'll still merge this PR.

@NucciTheBoss NucciTheBoss merged commit a15ee51 into charmed-hpc:main Sep 18, 2024
4 checks passed
@NucciTheBoss NucciTheBoss deleted the scontrol branch November 14, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Add scontrol function that calls scontrol on host
2 participants