Skip to content

Commit d0e058f

Browse files
committed
removed useless code
1 parent 9bf57f1 commit d0e058f

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import asyncio
2-
31
from fastapi import FastAPI
42
from servicelib.fastapi.long_running_tasks._server import setup
53

@@ -11,10 +9,3 @@ def setup_rest_api_long_running_tasks_for_uploads(app: FastAPI) -> None:
119
app,
1210
router_prefix=f"/{API_VTAG}/futures",
1311
)
14-
15-
app.state.completed_upload_tasks = {}
16-
17-
18-
def get_completed_upload_tasks(app: FastAPI) -> dict[str, asyncio.Task]:
19-
assert isinstance(app.state.completed_upload_tasks, dict) # nosec
20-
return app.state.completed_upload_tasks

services/storage/src/simcore_service_storage/utils/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
import hashlib
21
import logging
32
from pathlib import Path
43

54
import aiofiles
65
import httpx
76
from aiohttp.typedefs import StrOrURL
87
from aws_library.s3 import UploadID
9-
from models_library.projects_nodes_io import StorageFileID
10-
from models_library.users import UserID
118

129
from ..constants import MAX_CHUNK_SIZE, S3_UNDEFINED_OR_EXTERNAL_MULTIPART_ID
1310
from ..models import FileMetaData, FileMetaDataAtDB
@@ -68,11 +65,6 @@ def is_file_entry_valid(file_metadata: FileMetaData | FileMetaDataAtDB) -> bool:
6865
)
6966

7067

71-
def create_upload_completion_task_name(user_id: UserID, file_id: StorageFileID) -> str:
72-
the_hash = hashlib.sha256(f"{user_id}_{file_id}".encode()).hexdigest()
73-
return f"upload_complete_task_{the_hash}"
74-
75-
7668
def is_valid_managed_multipart_upload(upload_id: UploadID | None) -> bool:
7769
"""the upload ID is valid (created by storage service) AND internally managed by storage (e.g. PRESIGNED multipart upload)
7870

0 commit comments

Comments
 (0)