mirror of
https://github.com/exo-explore/exo.git
synced 2025-10-23 02:57:14 +03:00
fail if we never get the desired node count
This commit is contained in:
6
.github/workflows/bench_job.yml
vendored
6
.github/workflows/bench_job.yml
vendored
@@ -150,7 +150,7 @@ jobs:
|
||||
trap 'kill $PID1' EXIT
|
||||
|
||||
echo "Waiting for all nodes to connect..."
|
||||
for i in {1..100}; do
|
||||
for i in {1..20}; do
|
||||
echo "Attempt $i: Checking node count..."
|
||||
nodes=$(curl -s http://localhost:52415/topology | jq ".nodes | length")
|
||||
echo "Current node count: $nodes"
|
||||
@@ -158,6 +158,10 @@ jobs:
|
||||
echo "All nodes connected successfully!"
|
||||
break
|
||||
fi
|
||||
if [ $i -eq 20 ]; then
|
||||
echo "ERROR: Failed to connect all nodes after 20 attempts. Expected ${{ strategy.job-total }} nodes, but got $nodes"
|
||||
exit 1
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user