Skip to main content

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


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.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

OarLauncher-0.1.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: OarLauncher-0.1.4.tar.gz
  • Upload date:
  • Size: 3.6 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

Hashes for OarLauncher-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d36bdb5a30e1a9243a5f9f4f25d82d2d90e332aaee7c70fa1c50741c2fac89dc
MD5 5f6cab27b3cf2d70bbf1f986b8d6f9fd
BLAKE2b-256 50b3630c168229aea59c792b451b7e68059489a9b98099a551e598d6d63d8f7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: OarLauncher-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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

Hashes for OarLauncher-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9252ff3eb4d383f2b73570386554c8e10952c943b658dcdf9d8fbfd6aa4aef
MD5 437917557a2c4acc468c99f211b3ba05
BLAKE2b-256 49c9dc5752c9c74d041c75d80c1da88f90156f0674ce156e97ed755e7803c7fa

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