Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Allow env variable to config review app retries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nick Colley committed May 17, 2021
1 parent 4d8633e commit ecce09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/review-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ecce09a

Please sign in to comment.