Skip to content

Commit c7ffadf

Browse files
authored
Fix errors in wide-ep scripts (NVIDIA#5992)
Signed-off-by: Xianjie <[email protected]>
1 parent ce39409 commit c7ffadf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/wide_ep/slurm_scripts/run_benchmark.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ fi
6666
# check server is health by curl every 10 seconds timeout 1800 seconds
6767
timeout=1800
6868
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
69+
while ! curl -s -o /dev/null -w "%{http_code}" http://${hostname}:${port}/health; do
7470
current_time=$(date +%s)
7571
elapsed=$((current_time - start_time))
7672
if [ $elapsed -ge $timeout ]; then

0 commit comments

Comments
 (0)