Skip to content

Commit 691871f

Browse files
committed
Fix CI
1 parent e2b4ecc commit 691871f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)