mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-07-14 16:37:33 +02:00
use raw controller
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e # Exit on error
|
||||
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
echo "Waiting for API to be ready..."
|
||||
max_attempts=10
|
||||
attempt=1
|
||||
@@ -8,7 +10,7 @@ attempt=1
|
||||
while [ $attempt -le $max_attempts ]; do
|
||||
echo "Health check attempt $attempt of $max_attempts..."
|
||||
if curl -s -f -i http://localhost:9999/ > logs/health_check_$attempt.log 2>&1; then
|
||||
echo "Health check succeeded!"
|
||||
echo "Health check succeeded"
|
||||
break
|
||||
else
|
||||
echo "Health check failed, waiting 5 seconds..."
|
||||
|
||||
Reference in New Issue
Block a user