File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
services/autoscaling/src/simcore_service_autoscaling Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import datetime
22from functools import cached_property
3- from typing import Annotated , Final , Self , cast
3+ from typing import Final , Self , cast
44
55from aws_library .ec2 import EC2InstanceBootSpecific , EC2Tags
66from fastapi import FastAPI
@@ -184,7 +184,7 @@ class NodesMonitoringSettings(BaseCustomSettings):
184184
185185
186186class 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 (
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments