From 78bf792ee44e06eea98c93a30c65420e8de50654 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:42:40 +0200 Subject: [PATCH] more --- .../src/simcore_service_webserver/resource_manager/registry.py | 2 +- .../server/src/simcore_service_webserver/statics/_events.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/server/src/simcore_service_webserver/resource_manager/registry.py b/services/web/server/src/simcore_service_webserver/resource_manager/registry.py index 68bb1527881d..9ba7c7fcee8b 100644 --- a/services/web/server/src/simcore_service_webserver/resource_manager/registry.py +++ b/services/web/server/src/simcore_service_webserver/resource_manager/registry.py @@ -94,7 +94,7 @@ async def set_resource( ) -> None: hash_key = f"{self._hash_key(key)}:{_RESOURCE_SUFFIX}" field, value = resource - await self.client.hset(hash_key, mapping={field: value}) + await self.client.hset(hash_key, mapping={field: value}) # type: ignore[misc] async def get_resources(self, key: UserSessionDict) -> ResourcesDict: hash_key = f"{self._hash_key(key)}:{_RESOURCE_SUFFIX}" diff --git a/services/web/server/src/simcore_service_webserver/statics/_events.py b/services/web/server/src/simcore_service_webserver/statics/_events.py index d97ecac822f7..1c7f52d0bd75 100644 --- a/services/web/server/src/simcore_service_webserver/statics/_events.py +++ b/services/web/server/src/simcore_service_webserver/statics/_events.py @@ -1,6 +1,7 @@ import logging import re from copy import deepcopy +from typing import Any from aiohttp import web from aiohttp.client import ClientSession @@ -40,7 +41,7 @@ # which might still not be ready. # # -_STATIC_WEBSERVER_RETRY_ON_STARTUP_POLICY = { +_STATIC_WEBSERVER_RETRY_ON_STARTUP_POLICY: dict[str, Any] = { "stop": stop_after_attempt(5), "wait": wait_fixed(1.5), "before": before_log(_logger, logging.WARNING),