Skip to content

Commit c792827

Browse files
committed
done
1 parent 6d7ed3c commit c792827

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/autoscaling/src/simcore_service_autoscaling/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
from functools import cached_property
3-
from typing import Annotated, Final, Self, cast
3+
from typing import Final, Self, cast
44

55
from aws_library.ec2 import EC2InstanceBootSpecific, EC2Tags
66
from fastapi import FastAPI
@@ -184,7 +184,7 @@ class NodesMonitoringSettings(BaseCustomSettings):
184184

185185

186186
class DaskMonitoringSettings(BaseCustomSettings):
187-
DASK_MONITORING_URL: Annotated[str, AnyUrl] = Field(
187+
DASK_MONITORING_URL: AnyUrl = Field(
188188
..., description="the url to the osparc-dask-scheduler"
189189
)
190190
DASK_SCHEDULER_AUTH: InternalClusterAuthentication = Field(

services/autoscaling/src/simcore_service_autoscaling/utils/redis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def create_lock_key_and_value(app: FastAPI) -> tuple[str, str]:
2222
elif app_settings.AUTOSCALING_DASK:
2323
lock_key_parts += [
2424
"computational",
25-
app_settings.AUTOSCALING_DASK.DASK_MONITORING_URL,
25+
f"{app_settings.AUTOSCALING_DASK.DASK_MONITORING_URL}",
2626
]
2727
lock_value = json.dumps(
28-
{"scheduler_url": app_settings.AUTOSCALING_DASK.DASK_MONITORING_URL}
28+
{"scheduler_url": f"{app_settings.AUTOSCALING_DASK.DASK_MONITORING_URL}"}
2929
)
3030
lock_key = ":".join(f"{k}" for k in lock_key_parts)
3131
return lock_key, lock_value

0 commit comments

Comments
 (0)