Skip to main content

Shared tools for parsing&processing SLURM data

Project description

fractal-slurm-tools

PyPI version License

You can run a version of this tool from PyPI or GitHub, either via pipx or uvx.

Examples (the CLI entrypoint must be one of fractal-slurm-aggregate fractal-slurm-parse-bulk or fractal-slurm-parse-single-job):

# Latest PyPI release
$ pipx run --spec fractal-slurm-tools <entrypoint>
$ uvx --from fractal-slurm-tools <entrypoint>

# Specific PyPI release
$ pipx run --spec fractal-slurm-tools==0.3.1 <entrypoint>
$ uvx --from fractal-slurm-tools==0.3.1 <entrypoint>

# Latest git commit on the default branch
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git <entrypoint>

# Specific git commit
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@3faeefd0eac0f53c6c73d2e3179b10ff2a111793 <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@3faeefd0eac0f53c6c73d2e3179b10ff2a111793 <entrypoint>

# Specific git branch
$ pipx run --spec git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@main <entrypoint>
$ uvx --from git+https://github.com/fractal-analytics-platform/fractal-slurm-tools.git@main <entrypoint>

Environment variables

# Enable compatibility with legacy SLURM (e.g. v15.08.7)
USE_LEGACY_FIELDS=1

# Modify batch size
SACCT_BATCH_SIZE=50

# Token to connect to the Fractal backend
FRACTAL_TOKEN=...

A useful sacct command

sacct --format='JobID%18,JobName%18,State,ReqMem,MaxRSS,AveRSS,Elapsed,NCPUS,CPUTimeRaw,MaxDiskRead,MaxDiskWrite' -j XXXX

Development

uv

We use uv to manage the development environment and the dependencies - see https://docs.astral.sh/uv/getting-started/installation/ for methods to install it. From the root folder, you can get started through

# Create a new virtual environment in `.venv`
uv venv

# Install both the required dependencies and the optional dev/docs dependencies
uv sync --frozen --group dev

# Run a command from within this environment without updating the `uv.lock` file
uv run --frozen fractal-slurm-parse-single-job

Make a release

# Make a release
uv run --frozen bumpver update --patch --dry

Contributors and license

The Fractal project is developed by the BioVisionCenter at the University of Zurich, who contracts eXact lab s.r.l. for software engineering and development support.

Unless otherwise specified, Fractal components are released under the BSD 3-Clause License, and copyright is with the BioVisionCenter at the University of Zurich.

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

fractal_slurm_tools-0.3.1a4.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fractal_slurm_tools-0.3.1a4-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file fractal_slurm_tools-0.3.1a4.tar.gz.

File metadata

  • Download URL: fractal_slurm_tools-0.3.1a4.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fractal_slurm_tools-0.3.1a4.tar.gz
Algorithm Hash digest
SHA256 2c9d071a605d8907bd0633a838ef7efb9ac8d919f39cf91e1e754625adc52504
MD5 3aa548fdb9c97baf4c00b79e33eff97d
BLAKE2b-256 a761b711da4e96d98001251f3a1a95375700ae306ea0c6c970d8a6a220f546ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_slurm_tools-0.3.1a4.tar.gz:

Publisher: publish_to_pypi.yml on fractal-analytics-platform/fractal-slurm-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fractal_slurm_tools-0.3.1a4-py3-none-any.whl.

File metadata

File hashes

Hashes for fractal_slurm_tools-0.3.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 f16108d215c7d2709c6b6f064cfc6587896eb5afddbfca3f4fbec4abbc8b3b2c
MD5 4584e4a2610ea7e0ac867de8ed5228a1
BLAKE2b-256 3d6adbcf60cf629e0a7dc8a86a7384e5cc1137fadf1941c460d5341f6e93907d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fractal_slurm_tools-0.3.1a4-py3-none-any.whl:

Publisher: publish_to_pypi.yml on fractal-analytics-platform/fractal-slurm-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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