Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more context when starting PostgreSQL #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jugglinmike
Copy link
Contributor

Currently, if a connection to the PostgreSQL database cannot be
established, operators are instructed to wait indefinitely. They need to
exercise their own judgement to determine that an unrecoverable error
may have occurred, and they must then formulate their own plan to
diagnose the problem. This change introduces a suggestion about the
possibility of failure and some contextual information that will assist
in debugging. It also causes the script to fail immediately for truly
exceptional circumstances such as the absence of required modules.


I've also submitted this patch to the "template" project from which the script originated: cookiecutter/cookiecutter-django#3782

As noted there, I've arbitrarily chosen 30 seconds as the duration to wait before suggesting that something may not be working. Does that seem like an appropriate value to folks more familiar with this process?

Currently, if a connection to the PostgreSQL database cannot be
established, operators are instructed to wait indefinitely. They need to
exercise their own judgement to determine that an unrecoverable error
may have occurred, and they must then formulate their own plan to
diagnose the problem. This change introduces a suggestion about the
possibility of failure and some contextual information that will assist
in debugging. It also causes the script to fail immediately for truly
exceptional circumstances such as the absence of required modules.
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.

1 participant