Skip to main content

What is submitit_oar?

submitit_oar is an Oar plugin for Submitit, which is a Python 3.8+ lightweight toolbox for submitting Python functions for computation within a Slurm cluster. It basically wraps submission and provide access to results, logs and more.

How to install submitit_oar?

Quick install, in a virtualenv/conda environment where pip is installed (check which pip):

  • latest release:
pip install submitit_oar==1.1.3
  • from source:
pip install git+https://gitlab.inria.fr/grid5000/submitit_oar@master#egg=submitit_oar

How to use the submitit_oar plugin?

From inside an environment with submitit and submitit_oar installed, you can run this addition example:

import submitit

def add(a, b):
    return a + b

# logs are dumped in the folder
executor = submitit.AutoExecutor(folder="log_test", cluster="oar")

job_addition = executor.submit(add, 5, 7)  # will compute add(5, 7)
output = job_addition.result()  # waits for completion and returns output
# if ever the job failed, result() will raise an error with the corresponding trace
print('job_addition output: ', output)
assert output == 12

You can try running this above example with a breakpoint at https://github.com/facebookincubator/submitit/blob/main/submitit/core/plugins.py#L33, to be sure that Submitit correctly finds the submitit_oar plugin.

Releasing submitit_oar

Create a tag matching the version to release in gitlab, it should create a pipeline which will push the package to PyPi. If you want to do this manually, populate the FLIT_PASSWORD environment variable with the API token, and run make release

Metadata

Release files for submitit_oar 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for submitit_oar 1.1.3
File Size Uploaded Provenance Actions
submitit_oar-1.1.3.tar.gz 17.2 kB Without provenance Details for submitit_oar-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for submitit_oar 1.1.3
File Interpreter ABI Platform Actions
submitit_oar-1.1.3-py3-none-any.whl Python 3 none any Details for submitit_oar-1.1.3-py3-none-any.whl

Total release size: 35.3 kB

Release files / submitit_oar-1.1.3.tar.gz

Download URL submitit_oar-1.1.3.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e3fa2e8f9630c677542edf00843f32629ff2d5306e0f4672359e5d30fae71a9e
BLAKE2b-256 checksum
How to use checksums
69619c02778b68d4f9f7340e735fc855447ff77856d1cb435faf3cfcc5c6cacb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / submitit_oar-1.1.3-py3-none-any.whl

Download URL submitit_oar-1.1.3-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f59590baaaaee1eef2ded9af4bc17ad2771753d8b8b9b7703cd4d55e1fabbabc
BLAKE2b-256 checksum
How to use checksums
9dd703e2739973ab5d40b39411600de5a43bf8f547aad1fb4bbd6e7bf36dc282
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for submitit_oar 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page