File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -80,20 +80,21 @@ jobs:
8080 run : |
8181 ./main -r &
8282
83- # Wait for up to 2 minutes for the service to start
84- timeout=120
83+ # Wait for up to 5 minutes for the service to start and load models
84+ timeout=300
8585 while [ $timeout -gt 0 ]; do
8686 if curl -s "http://localhost:5000/cache/numberArray/DECLARATION" > /dev/null; then
8787 echo "Service is ready"
8888 break
8989 fi
9090 echo "Waiting for service to start... ($timeout seconds remaining)"
91- sleep 5
92- timeout=$((timeout - 5 ))
91+ sleep 10
92+ timeout=$((timeout - 10 ))
9393 done
9494
9595 if [ $timeout -le 0 ]; then
9696 echo "Service failed to start within timeout"
97+ # Print logs or debug information
9798 cat logs/*.log 2>/dev/null || true
9899 exit 1
99100 fi
You can’t perform that action at this time.
0 commit comments