submitit
"Python 3.8+ toolbox for submitting jobs to Slurm
What it is and what it does
Submitit is a Python 3.8+ library that simplifies job submission to Slurm clusters by wrapping the submission process and providing a concurrent.futures-compatible executor interface. You define a Python function, submit it via an executor, and retrieve results and logs programmatically—all from within Python rather than writing shell scripts. It handles job tracking, stdout/stderr capture, and can requeue preempted jobs.
The package is designed for researchers and engineers who want to launch compute tasks on HPC clusters without leaving Python. It trades off some of the distributed scheduling sophistication of other frameworks for lower-level control: each submitted task becomes an individual cluster job with its own logs and lifecycle, making it suitable for medium-to-large tasks rather than many small parallel operations.
Use it for:
- Submit long-running Python functions to a Slurm cluster and poll for results without manual job tracking
- Prototype distributed code locally using concurrent.futures, then swap to submitit executor for cluster execution
- Capture and inspect individual job logs and stderr for debugging failed cluster tasks
- Implement checkpoint-and-requeue workflows for preemptible cluster environments
- Run hyperparameter searches or batch experiments where each trial is a separate cluster job
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Submitit wraps Slurm job submission and monitoring, letting you submit Python functions to a cluster and retrieve results, logs, and job status from within Python code.
Yes, if you regularly submit jobs to Slurm clusters from Python code. The low install friction, permissive license, stable maturity, and zero known vulnerabilities make it a safe choice. The aging maintenance status is a minor concern for a stable library but worth monitoring if you need active feature development.
Install
submitit on PyPI
pip
pip install submitituv
uv add submititpoetry
poetry add submititInstalling submitit
Before you install
Low install friction with only 2 runtime dependencies (cloudpickle and typing_extensions). Maintenance status is aging—last release was 240 days ago—but the package is stable.
License in practice
MIT license is permissive; you can use submitit in proprietary projects without restriction, though you must include the license notice.
Quickstart
pip install submitit
import submitit
def add(a, b):
return a + b
executor = submitit.AutoExecutor(folder="log_test")
executor.update_parameters(timeout_min=1, slurm_partition="dev")
job = executor.submit(add, 5, 7)
output = job.result()
Slurm cluster must be accessible; requires Python 3.8 or later
Verify before relying
- Whether Slurm must be installed on the submission machine or only on cluster nodes
- Compatibility with non-Slurm cluster schedulers beyond the plugin system mentioned
- Performance characteristics for large numbers of concurrent job submissions
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — cloudpickle, typing_extensions |
| Maintenance | aging — 240 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,685,236/month — #3,654 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: submitit-1.5.4-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
hydra-submitit-launcherIntegrates Hydra configuration framework with…
permissive · top 15,000 on PyPI
slurm-usageCollects and preserves SLURM job efficiency…
permissive · top 15,000 on PyPI
dask-jobqueueDeploys Dask distributed computing clusters on…
permissive · top 15,000 on PyPI
aws-parallelclusterAWS ParallelCluster is a cluster management…
permissive · top 15,000 on PyPI
clusterscopeClusterscope extracts and queries information…
permissive · top 15,000 on PyPI
Flask-ExecutorFlask-Executor wraps Python's…
permissive · top 15,000 on PyPI
torchxTorchX is a universal job launcher that submits…
permissive · top 15,000 on PyPI
git-reviewgit-review is a command-line tool that…
permissive · top 15,000 on PyPI
codeflare-sdkCodeFlare SDK provides a Python interface for…
permissive · top 15,000 on PyPI
bounded-pool-executorWraps Python's ProcessPoolExecutor and…
permissive · top 15,000 on PyPI