mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(chat) remove check llmParser error than exit (#172)
This commit is contained in:
@@ -93,17 +93,16 @@ function runPythonService {
|
|||||||
# Add health check
|
# Add health check
|
||||||
for i in {1..10}
|
for i in {1..10}
|
||||||
do
|
do
|
||||||
echo "Performing health check attempt $i..."
|
echo "llmparser health check attempt $i..."
|
||||||
response=$(curl -s http://${LLMPARSER_HOST}:${LLMPARSER_PORT}/health)
|
response=$(curl -s http://${LLMPARSER_HOST}:${LLMPARSER_PORT}/health)
|
||||||
echo "health check response: $response"
|
echo "llmparser health check response: $response"
|
||||||
status_ok="Healthy"
|
status_ok="Healthy"
|
||||||
if [[ $response == *$status_ok* ]] ; then
|
if [[ $response == *$status_ok* ]] ; then
|
||||||
echo "Health check passed."
|
echo "llmparser Health check passed."
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
if [ "$i" -eq 10 ]; then
|
if [ "$i" -eq 10 ]; then
|
||||||
echo "Health check failed after 10 attempts. Exiting."
|
echo "llmparser Health check failed after 10 attempts. Exiting."
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
echo "Retrying after 5 seconds..."
|
echo "Retrying after 5 seconds..."
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|||||||
Reference in New Issue
Block a user