Skip to content

Commit

Permalink
Remove celery ping health check due to unreliability
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Nov 29, 2024
1 parent 9594185 commit 18d31c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# ruff: noqa: N802
from __future__ import annotations

import os
import zoneinfo
from pathlib import Path
Expand Down Expand Up @@ -85,7 +87,6 @@ class Common(Environment):
"health_check.db",
"health_check.cache",
"health_check.contrib.celery",
"health_check.contrib.celery_ping",
# Our app
"tilavarauspalvelu",
]
Expand Down Expand Up @@ -414,7 +415,7 @@ def OIDC_API_TOKEN_AUTH(cls):
CELERY_PROCESSED_FOLDER = values.StringValue(default="/broker/processed/")

@classproperty
def CELERY_BROKER_URL(cls):
def CELERY_BROKER_URL(cls) -> str:
return "filesystem://"

@classproperty
Expand Down Expand Up @@ -959,7 +960,7 @@ def CACHES(cls):
# --- Celery settings --------------------------------------------------------------------------------------------

@classproperty
def CELERY_BROKER_URL(cls):
def CELERY_BROKER_URL(cls) -> str:
return f"sentinel://:{cls.REDIS_PASSWORD}@{cls.REDIS_SENTINEL_SERVICE}"

@classproperty
Expand Down

0 comments on commit 18d31c9

Please sign in to comment.