Description
Project description
Simply start oar job array on nef cluster
# Choose 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()
log.info(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.106.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file OarLauncher-0.1.106.tar.gz
.
File metadata
- Download URL: OarLauncher-0.1.106.tar.gz
- Upload date:
- Size: 3.8 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.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4816ec260a75c7d49d3ca628d89132f3fcdbbfcba918b2f693adc3717bdcaa7 |
|
MD5 | a78210010ef1fe168138b7e72e0f3ce3 |
|
BLAKE2b-256 | 5108324fb744475c425c24b122d97e16687b14ab53ee31175246a52dcc5f0a7c |
File details
Details for the file OarLauncher-0.1.106-py3-none-any.whl
.
File metadata
- Download URL: OarLauncher-0.1.106-py3-none-any.whl
- Upload date:
- Size: 4.8 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.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc4ea6e9c6cefbc3cf42548c0a5c3b8cfb8c4318914d64ca89c735d7c217f3c8 |
|
MD5 | 2237e41fc53294e35baf75279455b94c |
|
BLAKE2b-256 | 7a9545fb8f0ed44d74c0cd35fcc5c37096ba2679d541d3e10a8496020df4c967 |