From 7379e3a833269a13bd48768a6d9e25f9f8bd3548 Mon Sep 17 00:00:00 2001 From: lexluo09 <39718951+lexluo09@users.noreply.github.com> Date: Sun, 8 Oct 2023 10:14:17 +0800 Subject: [PATCH] (improvement)(chat) remove check llmParser error than exit (#172) --- assembly/bin/supersonic-daemon.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/assembly/bin/supersonic-daemon.sh b/assembly/bin/supersonic-daemon.sh index 29fbbd2c7..3d03aba6b 100755 --- a/assembly/bin/supersonic-daemon.sh +++ b/assembly/bin/supersonic-daemon.sh @@ -93,17 +93,16 @@ function runPythonService { # Add health check for i in {1..10} do - echo "Performing health check attempt $i..." + echo "llmparser health check attempt $i..." response=$(curl -s http://${LLMPARSER_HOST}:${LLMPARSER_PORT}/health) - echo "health check response: $response" + echo "llmparser health check response: $response" status_ok="Healthy" if [[ $response == *$status_ok* ]] ; then - echo "Health check passed." + echo "llmparser Health check passed." break else if [ "$i" -eq 10 ]; then - echo "Health check failed after 10 attempts. Exiting." - exit 1 + echo "llmparser Health check failed after 10 attempts. Exiting." fi echo "Retrying after 5 seconds..." sleep 5