Skip to content

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

@Autumn-Roy

Description

@Autumn-Roy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions