Skip to content

Equivalent to the --wait flag of Slurm #108

@GuilloteauQ

Description

@GuilloteauQ

When using OAR (Scan scripts) and a workflow manager (Snakemake in my case) i am missing a feature of oarsub to wait on the completion of the job and returning the same exit code as the job script (so that the workflow manager can keep track of the processes and their status)

In Slurm there is the --wait flag of sbatch that does this: https://slurm.schedmd.com/sbatch.html#OPT_wait

So what i would love in OAR would be something like this:

$ oarsub --wait -S './my_script_that_sleeps_for_1_minute.sh`
# waits for the completion of the job (i.e. waiting + running time)
$ echo $?
0
$ oarsub --wait -S './my_script_that_fails.sh`
# waits for the completion of the job (i.e. waiting + running time)
$ echo $?
1

But i also realize this is a flag that is very specific to a passive submission of OAR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions