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
Release history Release notifications | RSS feed
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.14.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file OarLauncher-0.2.14.tar.gz
.
File metadata
- Download URL: OarLauncher-0.2.14.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1072dbf5de3c7767b47fb8cfd1eb787447ad50cd687e2e2f885e03b04dca8e7b |
|
MD5 | 49fb07522295a73e23f41766bb2f7a54 |
|
BLAKE2b-256 | 208c38f0b53da9506c118d320981357628a0996f5b9bb01e2c26f8cffa82bd2f |
File details
Details for the file OarLauncher-0.2.14-py3-none-any.whl
.
File metadata
- Download URL: OarLauncher-0.2.14-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7257069979068ee7f622672db0f632d1d55521295dc317cfae1b09a8c58aead8 |
|
MD5 | 1d708edd78f5f46cb979127601c3b8e9 |
|
BLAKE2b-256 | 335cea5aad2074110b2a6f434f2976f4dabd6b72708c620e068b58aac0a5fed6 |