Skip to content

Commit

Permalink
feat: use 10 retries and 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Oct 24, 2024
1 parent b7ac53d commit fd581f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ if [[ -z "${CONNECTION_STRING}" ]]; then
export CONNECTION_STRING=postgres://${PG_COMPONENT_PSQL_USER}:${PG_COMPONENT_PSQL_PASSWORD}@${PG_COMPONENT_PSQL_HOST}:${PG_COMPONENT_PSQL_PORT}/${PG_COMPONENT_PSQL_DATABASE}
fi

for i in {1..5}; do
npm run migrate:docker up && break || echo "Migration failed, retrying... ($i)" && sleep 60;
for i in {1..10}; do
npm run migrate:docker up && break || echo "Migration failed, retrying... ($i)" && sleep 30;
done

if [ $i -eq 5 ]; then
Expand Down

0 comments on commit fd581f4

Please sign in to comment.