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 a JSON file.
  • The JSON file is transformed into a Slurm script.
  • The Slurm file is submitted to the 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:

  • test.json contains the Slurm job description
  • 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
# Running this command will:
#   - Create a Slurm script "slurm_output/test.slm"
#   - Put the log file in "slurm_output/test.log"
#   - Run the Slurm script on the cluster
sgen test.json

Project Links

Author

Copyright

(c) 2023 - Thomas Guillod - Dartmouth College

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-0.3.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

slurmgen-0.3.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for slurmgen-0.3.0.tar.gz
Algorithm Hash digest
SHA256 aa9ef3741a2b6aacc6a1d962fc3e2a5f332b8583449e057db4d4fcca98b7d146
MD5 df25f4c8a0f73e6856d6c99ba8aaf063
BLAKE2b-256 e07396c35227144b6cc4a307510de63c6a279ef0571ad35ccc8ea3273e4eb5c2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for slurmgen-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd4a812c53df569d1b13f470c6113dc079b32200d74503aa8ab03d06bc437c60
MD5 96cd2682d9054b08c4e50de2e7897f5e
BLAKE2b-256 c4f806974cfe63cdd4d2dbd5e48f86f0552dc03d8f364bd17f933b6085e3822d

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