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.6.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file OarLauncher-0.1.6.tar.gz
.
File metadata
- Download URL: OarLauncher-0.1.6.tar.gz
- Upload date:
- Size: 3.9 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 | 7d05712d00e9582b42df1fbb1e62525c3d46c10e33ddea2548b3ddb7c5cb7f3f |
|
MD5 | 4c808873af99a226043bc9e02c5426b5 |
|
BLAKE2b-256 | a8e25e9b7cc5fdc50be07008381180500c8f63dc328d0c7f05c903b46b71ad4d |
File details
Details for the file OarLauncher-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: OarLauncher-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | e118727903c4a669694bf38343a88e40cc6cbe2ecbdbf026aeef8764eb65c744 |
|
MD5 | 0a064812bef5a21242f21547d7a952fe |
|
BLAKE2b-256 | af8078e818883552f21b85f3f573767040bf88b2555b629930c86f61979f324d |