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

Add parameters to database availability pings, show waiting message #159

Open
wants to merge 1 commit into
base: 0.4.x
Choose a base branch
from

Conversation

NoDiskInDriveA
Copy link
Contributor

@NoDiskInDriveA NoDiskInDriveA commented May 25, 2024

Helps a bit with finding out why task:init waits forever :)

@@ -25,6 +25,10 @@ function task_database_available()
exit 1
fi

if ! (( counter % 5 )); then
echo "Waiting for database to become available: '${command}'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Careful about printing the database password out for mysql. Maybe direct to stderr too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
echo "Waiting for database to become available: '${command}'"
echo "Waiting for database '$DB_HOST' to become available" >&2

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.

3 participants