Job dependency
Hey by reading OTRS tickets I had an idea but I don't know if it's a good idea to put this on this repo or not :
I was thinking of adding a folder/script to give a bash template in order to use job dependecy.
For exemple here : hello_world/test_scripts/ and named it "job_dependency" with the following script inside :
#!/bin/bash
JOB1=` sbatch --job-name=job1 test.sh | awk '{print $4}'`
cp input_files.in input_files_for_next_job.in
JOB2=`sbatch --dependency=afterok:$JOB1 test.sh | awk '{print $4}'`
JOB3=`sbatch --dependency=after:$JOB2 test.sh | awk '{print $4}'`
JOB4=`sbatch --dependency=afterany:$JOB1:$JOB2 :$JOB3 test.sh | awk '{print $4}'`
JOB5=`sbatch --job-name=job1 --dependency=singleton test.sh | awk '{print $4}'`
What do you think?