File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,15 @@ jobs:
1818 run : |
1919 pushd examples/cpp/micro-bench/launcher
2020 # (srun --nodes=2 --ntasks-per-node=1 --cpus-per-task=8 --partition=devel --job-name=rpc_ci sleep 10000 &) || true
21- sbatch /home/geng.161/slurm_grpc_ci.sh
22- # Wait allocation done
23- while ! squeue -n rpc_ci --long -u $USER | grep -q "R"; do
24- sleep 1
25- done
21+ if [[ ! squeue -n rpc_ci --long -u $USER | grep -q "RUNNING" ]]; then
22+ sbatch /home/geng.161/slurm_grpc_ci.sh
23+ # Wait allocation done
24+ while ! squeue -n rpc_ci --long -u $USER | grep -q "RUNNING"; do
25+ sleep 1
26+ done
27+ else
28+ echo "RUNNING"
29+ fi
2630 squeue -n rpc_ci -u $USER -o %N | tail -n 1 | xargs ./helper.sh
2731 CI_SERVER=$(head -n 1 hosts)
2832 echo "##[set-output name=ci_server;]$CI_SERVER"
You can’t perform that action at this time.
0 commit comments