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

[pull request pre] Use pyslurm to get the job information #2

Open
Autumn-Roy opened this issue May 15, 2023 · 0 comments
Open

[pull request pre] Use pyslurm to get the job information #2

Autumn-Roy opened this issue May 15, 2023 · 0 comments

Comments

@Autumn-Roy
Copy link

I forked the cc-slurm-sync project and used it in my cluster as the collection of job information with ClusterCcokkpit. During the setup, I found that original script was using slurm command to get the job state and information. This way is clear and understandable, but may consume more resources and connect with slurm server many times.

So I rewrite the script, change all slrum command to python API: pyslurm. This change also inferred the structure of slurmJobData, so you will see the conflicts. By the way, I use "logging" package instead of the "print".

I hope my rewriting will help your script more elignant and useful. The script is in https://github.com/SJTU-HPC/cc-slurm-sync. If you want, I'm willing to merge changes in cc-slurm-sync

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

No branches or pull requests

1 participant