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 django-health-check #209

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@
"django.contrib.staticfiles",
# External
"django_celery_beat",
# - Health-check
"health_check", # required
"health_check.db",
"health_check.cache",
"health_check.storage",
"health_check.contrib.migrations",
"health_check.contrib.redis", # requires Redis broker
# Internal
"apps.common",
"apps.etl",
Expand Down Expand Up @@ -363,6 +370,10 @@

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

# HEALTH-CHECK
REDIS_URL = CELERY_REDIS_URL
HEALTHCHECK_CACHE_KEY = "MONTY_ETL_HEALTHCHECK_KEY"


CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers:DatabaseScheduler"

Expand Down
3 changes: 2 additions & 1 deletion main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from django.urls import include, path

urlpatterns = [
path("admin/", admin.site.urls),
path("health-check/", include("health_check.urls")),
]

if settings.DEBUG:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies = [
# Dev
"django-stubs",
"celery-types",
"django-health-check",
]

[tool.uv.sources]
Expand Down
14 changes: 14 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading