SlurmGen - Simple Slurm Manager
Project description
SlurmGen - Simple Slurm Manager
- Repository: github.com/otvam/slurmgen
- Package: pypi.org/project/slurmgen
Summary
SlurmGen is a very simple Slurm manager:
- The job description is stored in JSON files.
- The JSON files are transformed into Slurm scripts.
- The Slurm script can be run locally or on a Slurm Cluster.
SlurmGen is only supporting a small subset of Slurm:
- Create and delete folders.
- Set environment variables.
- Set the job name and log.
- Set the ressources (memory, time, CPU, etc.).
- Define the set of commands to be executed.
SlurmGen is not a binding and/or a wrapper for Slurm. SlurmGen is only generating Slurm scripts from JSON files. SlurmGen is written in Python without any external dependencies.
Example
An example is located in the example
folder of the repository:
job_def.json
contains the job definitionjob_tmpl.json
contains the template datarun_slurm.py
contains is dummy script executed by the jonslurm_output
contains the generated Slurm script and log filedata_output
contains data generated by the Slurm job
# Create a Slurm script with a command line template.
sgen job_def.json --tmpl_str "title" "test" --tmpl_str "var" "Welcome to everyone"
# Create a Slurm script with a JSON file template.
sgen job_def.json --tmpl_file job_tmpl.json
# Create a Slurm script and run the job locally.
sgen job_def.json --local --tmpl_file job_tmpl.json
# Create a Slurm script and run the job on the cluster.
sgen job_def.json --cluster --tmpl_file job_tmpl.json
Project Links
- Repository: https://github.com/otvam/slurmgen
- Releases: https://github.com/otvam/slurmgen/releases
- Tags: https://github.com/otvam/slurmgen/tags
- Issues: https://github.com/otvam/slurmgen/issues
- PyPi: https://pypi.org/project/slurmgen
Author
- Thomas Guillod
- Email: guillod@otvam.ch
- Website: https://otvam.ch
Copyright
(c) 2023 - Thomas Guillod
BSD 2-Clause "Simplified" License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slurmgen-3.11.0.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for slurmgen-3.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e6055d44dcab084d641335458c2c4520a918a129469369d2f5d69f233b1c84 |
|
MD5 | 8f8f96be69f33cd8a8131863ee63e441 |
|
BLAKE2b-256 | dac1548f40c0d6a825c04a050d8cda2ac9ba059fe3ce31c49f1d1b89f31206b3 |