From 40cefe9536352f5351d0e7066516825132166393 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 22 Sep 2023 14:00:22 -0600 Subject: [PATCH] wait for long running scripts but wait shorter but still vary it based on whether we're on ci or local --- private/scripts/helpers.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/private/scripts/helpers.sh b/private/scripts/helpers.sh index de767c2c..5d23d8ed 100755 --- a/private/scripts/helpers.sh +++ b/private/scripts/helpers.sh @@ -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 }