From cb1d94d8a65697ebef0c8922de5a575ec9fd7d0b Mon Sep 17 00:00:00 2001 From: xiangmy21 <90919434+xiangmy21@users.noreply.github.com> Date: Wed, 8 May 2024 04:42:55 +0800 Subject: [PATCH] fix: run.sh retry times --- dependency/shell/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dependency/shell/run.sh b/dependency/shell/run.sh index 4ac6370c..49c80014 100644 --- a/dependency/shell/run.sh +++ b/dependency/shell/run.sh @@ -51,9 +51,9 @@ fi function retry_command { local command="$1" - local max_attempts=2 + local max_attempts=10 local attempt_num=1 - local sleep_seconds=10 + local sleep_seconds=5 while [ $attempt_num -le $max_attempts ]; do echo "Attempt $attempt_num / $max_attempts to run command: $command" @@ -95,7 +95,7 @@ if [ "$TERMINAL" = "SERVER" ]; then echo "FINISH URL: $FINISH_URL" echo "waiting..." - sleep 30 # wait connection time + sleep 60 # wait connection time echo "watching..." if [ ! -f $playback_dir/start.lock ]; then