Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Adjust DAS5 worker and master jobname and run time
Browse files Browse the repository at this point in the history
  • Loading branch information
Noorts committed Dec 15, 2023
1 parent c2a37e2 commit b91e23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/start_master.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

sbatch --time=00:10:00 --job-name=dlsa_master --nodes=1 ~/DLSA/utils/master.sh | awk '{print $4}' | xargs -I {} sh -c 'while [ ! -e "slurm-{}.out" ]; do sleep 1; done; cat "slurm-{}.out" | head --lines 1 | awk "{print \$2}" | awk -F "/" "{print \$1}"'
sbatch --time=00:15:00 --job-name=dlsa_m --nodes=1 ~/DLSA/utils/master.sh | awk '{print $4}' | xargs -I {} sh -c 'while [ ! -e "slurm-{}.out" ]; do sleep 1; done; cat "slurm-{}.out" | head --lines 1 | awk "{print \$2}" | awk -F "/" "{print \$1}"'

if [ $? -eq 0 ]; then
echo "Master started!"
Expand Down
2 changes: 1 addition & 1 deletion utils/start_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ else
fi

for ((i = 1; i <= "$1"; i++)); do
sbatch --time=00:05:00 --job-name="dlsa_worker_$1" --nodes=1 ~/DLSA/utils/worker.sh $2
sbatch --time=00:15:00 --job-name="dlsa_w_$1" --nodes=1 ~/DLSA/utils/worker.sh $2
done

0 comments on commit b91e23c

Please sign in to comment.