Skip to content

Commit 81bf68f

Browse files
author
Andrei Neagu
committed
rename and docstring
1 parent 9404272 commit 81bf68f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

services/web/server/src/simcore_service_webserver/dynamic_scheduler/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ async def restart_user_services(app: web.Application, *, node_id: NodeID) -> Non
162162
get_rabbitmq_rpc_client(app),
163163
node_id=node_id,
164164
timeout_s=int(
165-
settings.DYNAMIC_SCHEDULER_RESTART_DYNAMIC_SERVICE_TIMEOUT.total_seconds()
165+
settings.DYNAMIC_SCHEDULER_RESTART_USER_SERVICES_TIMEOUT.total_seconds()
166166
),
167167
)

services/web/server/src/simcore_service_webserver/dynamic_scheduler/settings.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ class DynamicSchedulerSettings(BaseCustomSettings, MixinServiceSettings):
2626
),
2727
)
2828

29-
DYNAMIC_SCHEDULER_RESTART_DYNAMIC_SERVICE_TIMEOUT: datetime.timedelta = Field(
30-
datetime.timedelta(minutes=1),
31-
description="timeout of containers restart",
32-
validation_alias=AliasChoices(
33-
"DIRECTOR_V2_RESTART_DYNAMIC_SERVICE_TIMEOUT",
34-
),
29+
DYNAMIC_SCHEDULER_RESTART_USER_SERVICES_TIMEOUT: datetime.timedelta = Field(
30+
datetime.timedelta(minutes=1), description="timeout for user services restart"
3531
)
3632

3733

0 commit comments

Comments
 (0)