Skip to content

Commit

Permalink
Merge pull request #324 from eesast/dev
Browse files Browse the repository at this point in the history
fix: run.sh retry times
  • Loading branch information
xiangmy21 authored May 7, 2024
2 parents a6dc0bf + cb1d94d commit bca1435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dependency/shell/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bca1435

Please sign in to comment.