Skip to main content

Description

Project description

Simply start oar job array on nef cluster

Install

pip install --upgrade OarLauncher

Usage

import treefiles as tf
from OarLauncher import ArrayJob


# Choose a directory where script and logs are dumped
out_dir = tf.Tree.new(__file__, "generated").dump(clean=True)

# Create parameters array
nb_jobs, data = 10, ArrayJob.Data
for i in range(nb_jobs):
    data["simu_dir"].append(f"d_{i}")
    data["infos"].append(f"this is job {i}")

# Path of the script that will be called by each job of the array
# Each line of data will be sent to this script as json command line argument
job_script = tf.curDirs(__file__, "job.py")

# Create the job array
jobs = ArrayJob(out_dir, data, job_script)
# Setup jobs conf
jobs.build_oar_command(minutes=100, queue=tf.oar.Queue.BESTEFFORT)
# Write scripts
jobs.dump()
# Start the job array (blocking operation)
shell_out = jobs.run()
print(shell_out)

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

OarLauncher-0.2.15.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

OarLauncher-0.2.15-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file OarLauncher-0.2.15.tar.gz.

File metadata

  • Download URL: OarLauncher-0.2.15.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for OarLauncher-0.2.15.tar.gz
Algorithm Hash digest
SHA256 88a176babd7d9e72ab1f1c81847634cf1862a3c30074f65db978346c3e9d0d54
MD5 d032afbd3a7a33f6365b76955550042e
BLAKE2b-256 fb0c25abc7a1454c60a0c4a7c12044dfedec5749ae29941c6d2b535230529a1e

See more details on using hashes here.

File details

Details for the file OarLauncher-0.2.15-py3-none-any.whl.

File metadata

  • Download URL: OarLauncher-0.2.15-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for OarLauncher-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 da1b22ab3b33f7bc5bd8c6bf111548603ae62cde17ece5a3ec307165967dac38
MD5 96b30b8d6a690be6520bf9294dd989a9
BLAKE2b-256 bee99e4fdac9d350928fc7134c88e97bd7e1a7926ff927585d34e6ce8a95d8ff

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