Skip to main content

SlurmGen - Simple Slurm Manager

Project description

SlurmGen - Simple Slurm Manager

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_tmpl.json contains the job template
  • job_def.json contains the job definition
  • run_slurm.py contains is dummy script executed by the jon
  • slurm_output contains the generated Slurm script and log file
  • data_output contains data generated by the Slurm job
# Create a Slurm script.
sgen job_tmpl.json job_def.json

# Create a Slurm script and run the job locally.
sgen --local job_tmpl.json job_def.json

# Create a Slurm script and run the job on the cluster.
sgen --cluster job_tmpl.json job_def.json

Project Links

Author

Copyright

(c) 2023 - Thomas Guillod

BSD 2-Clause "Simplified" License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slurmgen-1.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

slurmgen-1.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file slurmgen-1.1.0.tar.gz.

File metadata

  • Download URL: slurmgen-1.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for slurmgen-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7d32571b07793cd1fce8389dd86aaba294d69785ff35d0244a8bed7f574f8417
MD5 715757bfd8ae172ecd2ae567d2351981
BLAKE2b-256 3cfafa2c49f00d204c5f3d57fceb5387c9e4d77e02f58362198ce12446f7ed53

See more details on using hashes here.

File details

Details for the file slurmgen-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: slurmgen-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for slurmgen-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8da776f5103225652071436d31ad817a6ac4e69a8d45bf6e9a89a477c7f8241c
MD5 5eee29369efc43dd10774861b4bd0227
BLAKE2b-256 e18c1c35e5d75a9a602e2abe5e353a6a5dbf7096eb78002858ee55175bb1edff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page