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.1.15.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file OarLauncher-0.1.15.tar.gz
.
File metadata
- Download URL: OarLauncher-0.1.15.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa637fc99448b6f4fb95b7a4da5c4826f25ad33e7ddcc968bba96ee9a9d83d3 |
|
MD5 | 4184362bcfac8440e7ffb57805ff955a |
|
BLAKE2b-256 | a51970208629afb1a9b0d921adc409f94fe87e8e0978b7ebcf0255c20d376d88 |
File details
Details for the file OarLauncher-0.1.15-py3-none-any.whl
.
File metadata
- Download URL: OarLauncher-0.1.15-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3a7e337d4d31cc72f52f122dba8f4b25dcabe46d3204c4c016da5659821924 |
|
MD5 | c41f16ad6b686994556b49ece8e753d1 |
|
BLAKE2b-256 | 738f395c6dc9997f3d036ff62fc31d0d79d32356228b4ed83802b6b771abed4e |