diff --git a/config/settings.py b/config/settings.py index cc2a9e46f..ab108e12f 100644 --- a/config/settings.py +++ b/config/settings.py @@ -1,4 +1,6 @@ # ruff: noqa: N802 +from __future__ import annotations + import os import zoneinfo from pathlib import Path @@ -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", ] @@ -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 @@ -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