Skip to content

Commit 9d3bfab

Browse files
author
Christian Newman
committed
Revert the main tagger test
1 parent 2eb7505 commit 9d3bfab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)