|
10 | 10 | from settings_library.director_v2 import DirectorV2Settings |
11 | 11 | from settings_library.docker_api_proxy import DockerApiProxysettings |
12 | 12 | from settings_library.http_client_request import ClientRequestSettings |
| 13 | +from settings_library.postgres import PostgresSettings |
13 | 14 | from settings_library.rabbit import RabbitSettings |
14 | 15 | from settings_library.redis import RedisSettings |
15 | 16 | from settings_library.tracing import TracingSettings |
@@ -49,19 +50,19 @@ class _BaseApplicationSettings(BaseApplicationSettings, MixinLoggingSettings): |
49 | 50 | "is disabled if you want to have structured logs!" |
50 | 51 | ), |
51 | 52 | ) |
52 | | - DYNAMIC_SCHEDULER_LOG_FILTER_MAPPING: dict[ |
53 | | - LoggerName, list[MessageSubstring] |
54 | | - ] = Field( |
55 | | - default_factory=dict, |
56 | | - validation_alias=AliasChoices( |
57 | | - "LOG_FILTER_MAPPING", |
58 | | - "DYNAMIC_SCHEDULER_LOG_FILTER_MAPPING", |
59 | | - ), |
60 | | - description=( |
61 | | - "is a dictionary that maps specific loggers " |
62 | | - "(such as 'uvicorn.access' or 'gunicorn.access') to a list " |
63 | | - "of log message patterns that should be filtered out." |
64 | | - ), |
| 53 | + DYNAMIC_SCHEDULER_LOG_FILTER_MAPPING: dict[LoggerName, list[MessageSubstring]] = ( |
| 54 | + Field( |
| 55 | + default_factory=dict, |
| 56 | + validation_alias=AliasChoices( |
| 57 | + "LOG_FILTER_MAPPING", |
| 58 | + "DYNAMIC_SCHEDULER_LOG_FILTER_MAPPING", |
| 59 | + ), |
| 60 | + description=( |
| 61 | + "is a dictionary that maps specific loggers " |
| 62 | + "(such as 'uvicorn.access' or 'gunicorn.access') to a list " |
| 63 | + "of log message patterns that should be filtered out." |
| 64 | + ), |
| 65 | + ) |
65 | 66 | ) |
66 | 67 |
|
67 | 68 | DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT: datetime.timedelta = Field( |
@@ -164,6 +165,14 @@ class ApplicationSettings(_BaseApplicationSettings): |
164 | 165 | Field(json_schema_extra={"auto_default_from_env": True}), |
165 | 166 | ] |
166 | 167 |
|
| 168 | + DYNAMIC_SCHEDULER_POSTGRES: Annotated[ |
| 169 | + PostgresSettings, |
| 170 | + Field( |
| 171 | + json_schema_extra={"auto_default_from_env": True}, |
| 172 | + description="settings for postgres service", |
| 173 | + ), |
| 174 | + ] |
| 175 | + |
167 | 176 | @field_validator("DYNAMIC_SCHEDULER_UI_MOUNT_PATH", mode="before") |
168 | 177 | @classmethod |
169 | 178 | def _ensure_ends_with_slash(cls, v: str) -> str: |
|
0 commit comments