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

Use django to check db connection #538

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

mdellweg
Copy link
Member

[noissue]

@mdellweg mdellweg force-pushed the rework_wait_for_db branch 2 times, most recently from 6603266 to 71220c7 Compare August 31, 2023 15:45
import sys
import time
from django.db import connection, utils
Copy link
Member

Choose a reason for hiding this comment

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

Extremely good idea!

@@ -51,8 +51,6 @@ services:
- "./assets/certs:/etc/pulp/certs:z"
- "../../pulp_storage:/var/lib/pulp:z"
environment:
POSTGRES_SERVICE_PORT: 5432
Copy link
Member

Choose a reason for hiding this comment

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

I see these are not necessary because they're in the settings.py file. 👍🏻

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually it was only used by the old wait_on_postgres.

@mdellweg mdellweg merged commit e8d49aa into pulp:latest Sep 1, 2023
15 checks passed
@mdellweg mdellweg deleted the rework_wait_for_db branch September 1, 2023 13:24
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.

2 participants