We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0858664 commit 337db2dCopy full SHA for 337db2d
services/director-v2/src/simcore_service_director_v2/utils/computations.py
@@ -2,6 +2,7 @@
2
import logging
3
from typing import Any
4
5
+import arrow
6
from models_library.projects_state import RunningState
7
from models_library.services import ServiceKeyVersion
8
from models_library.services_regex import SERVICE_KEY_RE
@@ -131,7 +132,7 @@ async def find_deprecated_tasks(
131
132
133
def _is_service_deprecated(service: dict[str, Any]) -> bool:
134
if deprecation_date := service.get("deprecated"):
- deprecation_date = dt.datetime.fromisoformat(deprecation_date).replace(
135
+ deprecation_date = arrow.get(deprecation_date).datetime.replace(
136
tzinfo=dt.UTC
137
)
138
is_deprecated: bool = today > deprecation_date
0 commit comments