Skip to content

Commit d31fe30

Browse files
committed
chore: update check_nexus_with_retry func
Signed-off-by: Xin Liu <sam@secondstate.io>
1 parent 8bbe659 commit d31fe30

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

gaianet

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -787,10 +787,9 @@ check_nexus_with_retry() {
787787

788788
# check curl command exit status
789789
if [ $exit_status -ne 0 ]; then
790-
printf " ❌ gaia-nexus is not ready (exit status: $exit_status)\n"
791-
792790
if [ $retry_count -lt $max_retries ]; then
793791
local wait_time=$((retry_count * 10))
792+
printf " ❌ gaia-nexus is not ready (exit status: $exit_status). Retrying in $wait_time seconds ...⏳\n"
794793
sleep $wait_time
795794
fi
796795

@@ -806,9 +805,9 @@ check_nexus_with_retry() {
806805
# stop
807806
stop_force
808807

809-
printf "❌ Failed after $max_retries retries\n"
810-
printf "❌ Final exit status code: $exit_status\n"
811-
printf "❌ Final error message: %s\n" "$output"
808+
printf " ❌ Failed after $max_retries retries\n"
809+
printf " ❌ Final exit status code: $exit_status\n"
810+
printf " ❌ Final error message: %s\n" "$output"
812811

813812
return 1
814813
fi

0 commit comments

Comments
 (0)