Skip to content

Conversation

@chouinar
Copy link
Contributor

@chouinar chouinar commented Sep 13, 2023

Ticket

Resolves #195

Changes

Added a shell script that uses the pg_isready command to check if the DB is available rather than arbitrarily waiting 5 seconds.

Added some details for how to run with PY_RUN_APPROACH=local with some local.env changes that occurred a while back.

Context for reviewers

The notes regarding the PY_RUN_APPROACH and loading environment variables was needed to unblock my development, but only amounts to some updated documentation so should be fine to combine with this PR.

Testing

Was able to run this locally:
Screenshot 2023-09-13 at 2 55 49 PM

@chouinar chouinar requested a review from lorenyu September 13, 2023 20:29
Copy link
Contributor

@lorenyu lorenyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few tiny comments but looks good thanks!

@chouinar chouinar merged commit c1d1359 into main Sep 15, 2023
@chouinar chouinar deleted the chouinar/wait-for-db branch September 15, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modify how we wait for the Postgres DB locally to check the DB rather wait an arbitrary amount of time

3 participants