From ecce09a0b49b0ea102a10c7f833199b678a44d17 Mon Sep 17 00:00:00 2001 From: Nick Colley Date: Mon, 17 May 2021 10:48:08 +0100 Subject: [PATCH] Allow env variable to config review app retries Our application build time is slow so our provision step is failing, the build is not simple to speed up so this is a compromise to configure the retries while we improve build times. --- lib/review-apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/review-apps.js b/lib/review-apps.js index f01aa071..1a5f0036 100644 --- a/lib/review-apps.js +++ b/lib/review-apps.js @@ -12,7 +12,7 @@ const DEFAULT_HEADERS = { const CONFLICT_STATUS_CODE = 409; const GET_REVIEW_APP_NAME_NUM_RETRIES = 1; -const NUM_RETRIES = 60; +const NUM_RETRIES = process.env.HEROKU_REVIEW_APP_NUM_RETRIES || 60; const RETRY_EXP_BACK_OFF_FACTOR = 1; const MIN_TIMEOUT = 10 * 1000; const REVIEW_APP_STATUSES = {