Skip to content

Commit 9d2ef08

Browse files
committed
remove unused stuff
1 parent ba62aeb commit 9d2ef08

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

services/web/server/src/simcore_service_webserver/projects/_projects_service.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from decimal import Decimal
1818
from pprint import pformat
1919
from typing import Any, Final, cast
20-
from uuid import UUID, uuid4
20+
from uuid import uuid4
2121

2222
from aiohttp import web
2323
from common_library.json_serialization import json_dumps, json_loads
@@ -1612,24 +1612,6 @@ async def _get_project_share_state(
16121612
)
16131613

16141614

1615-
async def get_project_states_for_user(
1616-
user_id: int, project_uuid: str, app: web.Application
1617-
) -> ProjectState:
1618-
# for templates: the project is never locked and never opened. also the running state is always unknown
1619-
running_state = RunningState.UNKNOWN
1620-
share_state, computation_task = await logged_gather(
1621-
_get_project_share_state(user_id, project_uuid, app),
1622-
director_v2_service.get_computation_task(app, user_id, UUID(project_uuid)),
1623-
)
1624-
if computation_task:
1625-
# get the running state
1626-
running_state = computation_task.state
1627-
1628-
return ProjectState(
1629-
share_state=share_state, state=ProjectRunningState(value=running_state)
1630-
)
1631-
1632-
16331615
async def add_project_states_for_user(
16341616
*,
16351617
user_id: int,

0 commit comments

Comments
 (0)