Skip to content

Commit

Permalink
More output in job script
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger committed Mar 18, 2024
1 parent 590684a commit 6e75549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hpc/hq_scripts/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ load_balancer_dir="/load/balancer/directory" # CHANGE ME!

host=$(hostname -I | awk '{print $1}')

# Wait for model server to start
echo "Waiting for model server to respond at $host:$port..."
while ! curl -s "http://$host:$port/Info" > /dev/null; do
sleep 1
done
echo "Model server responded"

# Write server URL to file identified by HQ job ID.
mkdir -p "$load_balancer_dir/urls"
Expand Down

0 comments on commit 6e75549

Please sign in to comment.