Metadata-Version: 2.1
Name: OarLauncher
Version: 0.1.12
Summary: Description
Home-page: https://github.com/GaetanDesrues/OarLauncher
Author: Gaetan Desrues
Author-email: gaetan.desrues@inria.fr
License: UNKNOWN
Description: ### Simply start oar job array on nef cluster
        
        #### Install
        ```bash
        pip install --upgrade OarLauncher
        ```
        
        
        #### Usage
        ```python
        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)
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
