Add the logic on the launch-job.yml to check if there is a slurm job already executing in the remote host corresponding to actual branch. JOB_NAME=launch2hpc-main == launch2hpc/main
Steps:
Get the actual branch
Check on the remote host using squeue or similar command
Compare job name and branch
Exit code 1 and throw error message: if job == repo/branch already running
Error message: The job is already running. Remember the limitation of 1 job per repo/branch; please create another branch or cancel the job.
Continue if no job or != repo/branch
Ex. /gpfs/scrach/bsc88/magma-jobs/repo/branch
Limit job GPFS path to 1 per repo/branch
Add the logic on the
launch-job.yml
to check if there is a slurm job already executing in the remote host corresponding to actual branch.JOB_NAME=launch2hpc-main
==launch2hpc/main
Steps:
squeue
or similar command/gpfs/scrach/bsc88/magma-jobs/repo/branch