Skip to content

Commit

Permalink
Bug 1428031 - Heroku: Increase max load_initial_data retries to 10 (#…
Browse files Browse the repository at this point in the history
…4203)

Since there was still a deploy failure after five attempts here:
https://dashboard.heroku.com/apps/treeherder-prototype/activity/releases/2847
  • Loading branch information
edmorley committed Oct 29, 2018
1 parent a8d327d commit 47419fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/pre_deploy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo "-----> PRE-DEPLOY: Loading initial data..."
# TODO: Look into this again when using newer MySQL and Django 2.x.
ATTEMPTS=0
until newrelic-admin run-program ./manage.py load_initial_data; do
if (( ++ATTEMPTS == 5 )); then
if (( ++ATTEMPTS == 10 )); then
echo "Failed to load initial data after ${ATTEMPTS} attempts!"
exit 1
fi
Expand Down

0 comments on commit 47419fd

Please sign in to comment.