Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/kubeflow/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ API_PID=$!
# Wait for API to be ready
echo "Waiting for API server to start..."
for i in {1..30}; do
if curl -s http://127.0.0.1:4096/health > /dev/null 2>&1; then
if curl -sf --max-time 2 http://127.0.0.1:4096/session/status > /dev/null 2>&1; then
echo "API server is ready!"
break
fi
if [ $i -eq 30 ]; then
echo "ERROR: API server failed to start within 30 seconds"
echo "ERROR: API server failed to start after 30 attempts with a 2s request timeout"
exit 1
fi
sleep 1
Expand Down