Skip to content

Commit d720750

Browse files
author
Andrei Neagu
committed
fixed broken tests
1 parent 5c0b587 commit d720750

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/settings.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime
22

3-
from models_library.projects_ui import Annotation
43
from pydantic import AliasChoices, Field, TypeAdapter, field_validator
54
from servicelib.logging_utils_filtering import LoggerName, MessageSubstring
65
from settings_library.application import BaseApplicationSettings
@@ -24,15 +23,13 @@ class _BaseApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
2423

2524
# RUNTIME -----------------------------------------------------------
2625

27-
DYNAMIC_SCHEDULER_LOGLEVEL: Annotation[
28-
LogLevel,
29-
Field(
30-
default=LogLevel.INFO,
31-
validation_alias=AliasChoices(
32-
"DYNAMIC_SCHEDULER_LOGLEVEL", "LOG_LEVEL", "LOGLEVEL"
33-
),
26+
DYNAMIC_SCHEDULER_LOGLEVEL: LogLevel = Field(
27+
default=LogLevel.INFO,
28+
validation_alias=AliasChoices(
29+
"DYNAMIC_SCHEDULER_LOGLEVEL", "LOG_LEVEL", "LOGLEVEL"
3430
),
35-
]
31+
)
32+
3633
DYNAMIC_SCHEDULER_LOG_FORMAT_LOCAL_DEV_ENABLED: bool = Field(
3734
default=False,
3835
validation_alias=AliasChoices(

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from simcore_service_dynamic_scheduler.core.settings import ApplicationSettings
1111

1212
_the_settings = ApplicationSettings.create_from_envs()
13-
13+
# pylint:disable=no-member
1414
logging.basicConfig(level=_the_settings.DYNAMIC_SCHEDULER_LOGLEVEL.value)
1515
logging.root.setLevel(_the_settings.DYNAMIC_SCHEDULER_LOGLEVEL.value)
1616
config_all_loggers(

0 commit comments

Comments
 (0)