Skip to content

Commit

Permalink
wait for long running scripts but wait shorter
Browse files Browse the repository at this point in the history
but still vary it based on whether we're on ci or local
  • Loading branch information
jazzsequence committed Sep 22, 2023
1 parent 7147890 commit 40cefe9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions private/scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ function update_composer() {

# Check for long-running workflows.
if [[ "$(terminus workflow:wait --max=1 "${sitename}".dev)" == *"running"* ]]; then
echo "${yellow}Workflow still running, waiting another 30 seconds.${normal}"
terminus workflow:wait --max=30 "$sitename"."$siteenv"
waittime=$(( waittime / 3 ))
echo "${yellow}Workflow still running, waiting another ${waittime} seconds.${normal}"
terminus workflow:wait --max="$waittime" "$sitename"."$siteenv"
fi
}

Expand Down

0 comments on commit 40cefe9

Please sign in to comment.