From a3006192fa8fbdfa80ef0b5d45ac0a65e54c2bf6 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 10 Jul 2018 09:23:42 -0700 Subject: [PATCH] Fixed #2867: Cache clear errors on ACSF deploys. (#2922) * Fixed #2867: Cache clear errors on ACSF deploys. * Update db-update.sh --- scripts/factory-hooks/db-update/db-update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/factory-hooks/db-update/db-update.sh b/scripts/factory-hooks/db-update/db-update.sh index 5992ed364..b10fef38c 100755 --- a/scripts/factory-hooks/db-update/db-update.sh +++ b/scripts/factory-hooks/db-update/db-update.sh @@ -30,4 +30,9 @@ echo "$site.$target_env: Running BLT deploy tasks on $uri domain in $env environ IFS='.' read -a name <<< "${uri}" +# Set Drush cache to local ephemeral storage to avoid race conditions. This is +# done on a per site basis to completely avoid race conditions. +# @see https://github.com/acquia/blt/pull/2922 +export DRUSH_PATHS_CACHE_DIRECTORY=/tmp/.drush/${db_role} + $blt drupal:update --environment=$env --site=${name[0]} --define drush.uri=$domain --verbose --yes