Skip to content

Commit f196f2e

Browse files
fix: settings
1 parent cc93001 commit f196f2e

File tree

1 file changed

+13
-4
lines changed
  • services/notifications/src/simcore_service_notifications/core

1 file changed

+13
-4
lines changed

services/notifications/src/simcore_service_notifications/core/settings.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pydantic import AliasChoices, Field, field_validator
66
from servicelib.logging_utils_filtering import LoggerName, MessageSubstring
77
from settings_library.base import BaseCustomSettings
8+
from settings_library.celery import CelerySettings
89
from settings_library.postgres import PostgresSettings
910
from settings_library.rabbit import RabbitSettings
1011
from settings_library.tracing import TracingSettings
@@ -25,11 +26,11 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
2526

2627
SC_BOOT_MODE: BootModeEnum | None
2728

28-
NOTIFICATIONS_VOLUMES_LOG_FORMAT_LOCAL_DEV_ENABLED: Annotated[
29+
NOTIFICATIONS_LOG_FORMAT_LOCAL_DEV_ENABLED: Annotated[
2930
bool,
3031
Field(
3132
validation_alias=AliasChoices(
32-
"NOTIFICATIONS_VOLUMES_LOG_FORMAT_LOCAL_DEV_ENABLED",
33+
"NOTIFICATIONS_LOG_FORMAT_LOCAL_DEV_ENABLED",
3334
"LOG_FORMAT_LOCAL_DEV_ENABLED",
3435
),
3536
description=(
@@ -39,12 +40,12 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
3940
),
4041
] = False
4142

42-
NOTIFICATIONS_VOLUMES_LOG_FILTER_MAPPING: Annotated[
43+
NOTIFICATIONS_LOG_FILTER_MAPPING: Annotated[
4344
dict[LoggerName, list[MessageSubstring]],
4445
Field(
4546
default_factory=dict,
4647
validation_alias=AliasChoices(
47-
"NOTIFICATIONS_VOLUMES_LOG_FILTER_MAPPING", "LOG_FILTER_MAPPING"
48+
"NOTIFICATIONS_LOG_FILTER_MAPPING", "LOG_FILTER_MAPPING"
4849
),
4950
description="is a dictionary that maps specific loggers (such as 'uvicorn.access' or 'gunicorn.access') to a list of log message patterns that should be filtered out.",
5051
),
@@ -58,6 +59,14 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
5859
),
5960
]
6061

62+
NOTIFICATIONS_CELERY: Annotated[
63+
CelerySettings,
64+
Field(
65+
description="settings for service/celery",
66+
json_schema_extra={"auto_default_from_env": True},
67+
),
68+
]
69+
6170
NOTIFICATIONS_POSTGRES: Annotated[
6271
PostgresSettings,
6372
Field(

0 commit comments

Comments
 (0)