File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
services/director-v2/src/simcore_service_director_v2 Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ async def async_close_and_save_service(
106106 client = Client (
107107 app = app ,
108108 async_client = thin_dv2_localhost_client .client ,
109- base_url = TypeAdapter (AnyHttpUrl ).validate_python (thin_dv2_localhost_client .BASE_ADDRESS ),
109+ base_url = f" { TypeAdapter (AnyHttpUrl ).validate_python (thin_dv2_localhost_client .BASE_ADDRESS )} " ,
110110 )
111111
112112 if not skip_container_removal :
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ class DockerContainerInspect(BaseModel):
127127
128128 @cached_property
129129 def status (self ) -> DockerStatus :
130- assert self .container_state .Status # nosec
131- result : DockerStatus = self .container_state .Status
130+ assert self .container_state .status # nosec
131+ result : DockerStatus = self .container_state .status
132132 return result
133133
134134 @classmethod
@@ -198,7 +198,7 @@ class DynamicSidecar(BaseModel):
198198
199199 is_ready : bool = Field (
200200 default = False ,
201- scription = (
201+ description = (
202202 "is True while the health check on the dynamic-sidecar is responding. "
203203 "Meaning that the dynamic-sidecar is reachable and can accept requests"
204204 ),
@@ -220,7 +220,7 @@ def compose_spec_submitted(self) -> bool:
220220
221221 containers_inspect : list [DockerContainerInspect ] = Field (
222222 [],
223- scription = "docker inspect results from all the container ran at regular intervals" ,
223+ description = "docker inspect results from all the container ran at regular intervals" ,
224224 )
225225
226226 was_dynamic_sidecar_started : bool = False
Original file line number Diff line number Diff line change 11from aiodocker .exceptions import DockerError
2+ from common_library .errors_classes import OsparcErrorMixin
23from models_library .projects_nodes_io import NodeID
3- from pydantic .errors import PydanticErrorMixin
44
55from ...core .errors import DirectorError
66
@@ -39,6 +39,6 @@ class LegacyServiceIsNotSupportedError(DirectorError):
3939 """This API is not implemented by the director-v0"""
4040
4141
42- class UnexpectedContainerStatusError (PydanticErrorMixin , DynamicSidecarError ):
42+ class UnexpectedContainerStatusError (OsparcErrorMixin , DynamicSidecarError ):
4343 code = "dynamic_sidecar.container_status"
4444 msg_template = "Unexpected status from containers: {containers_with_error}"
You can’t perform that action at this time.
0 commit comments