We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce39409 commit c7ffadfCopy full SHA for c7ffadf
examples/wide_ep/slurm_scripts/run_benchmark.sh
@@ -66,11 +66,7 @@ fi
66
# check server is health by curl every 10 seconds timeout 1800 seconds
67
timeout=1800
68
start_time=$(date +%s)
69
-while true; do
70
- status_code=$(curl -s -o /dev/null -w "%{http_code}" http://${hostname}:${port}/health)
71
- if [ "$status_code" -eq 200 ]; then
72
- break
73
- fi
+while ! curl -s -o /dev/null -w "%{http_code}" http://${hostname}:${port}/health; do
74
current_time=$(date +%s)
75
elapsed=$((current_time - start_time))
76
if [ $elapsed -ge $timeout ]; then
0 commit comments