File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 65
65
from simcore_service_storage .datcore_dsm import DatCoreDataManager
66
66
from simcore_service_storage .dsm import get_dsm_provider
67
67
from simcore_service_storage .models import FileMetaData , FileMetaDataAtDB , S3BucketName
68
- from simcore_service_storage .modules .long_running_tasks import (
69
- get_completed_upload_tasks ,
70
- )
71
68
from simcore_service_storage .modules .s3 import get_s3_client
72
69
from simcore_service_storage .simcore_s3_dsm import SimcoreS3DataManager
73
70
from sqlalchemy import literal_column
@@ -503,8 +500,8 @@ async def _directory_creator(
503
500
assert file_upload_complete_response
504
501
state_url = URL (f"{ file_upload_complete_response .links .state } " ).relative ()
505
502
506
- # check that it finished updating
507
- get_completed_upload_tasks (initialized_app ).clear ()
503
+ # check that it finished updating TODO: this works via celery now
504
+ # get_completed_upload_tasks(initialized_app).clear()
508
505
# now check for the completion
509
506
async for attempt in AsyncRetrying (
510
507
reraise = True ,
Original file line number Diff line number Diff line change 55
55
from servicelib .aiohttp import status
56
56
from simcore_service_storage .constants import S3_UNDEFINED_OR_EXTERNAL_MULTIPART_ID
57
57
from simcore_service_storage .models import FileDownloadResponse , S3BucketName , UploadID
58
- from simcore_service_storage .modules .long_running_tasks import (
59
- get_completed_upload_tasks ,
60
- )
61
58
from simcore_service_storage .simcore_s3_dsm import SimcoreS3DataManager
62
59
from sqlalchemy .ext .asyncio import AsyncEngine
63
60
from tenacity .asyncio import AsyncRetrying
@@ -682,8 +679,8 @@ async def test_upload_real_file_with_emulated_storage_restart_after_completion_w
682
679
assert file_upload_complete_response
683
680
state_url = URL (f"{ file_upload_complete_response .links .state } " ).relative ()
684
681
685
- # here we do not check now for the state completion. instead we simulate a restart where the tasks disappear
686
- get_completed_upload_tasks (initialized_app ).clear ()
682
+ # # here we do not check now for the state completion. instead we simulate a restart where the tasks disappear TODO: fix
683
+ # get_completed_upload_tasks(initialized_app).clear()
687
684
# now check for the completion
688
685
completion_etag = None
689
686
async for attempt in AsyncRetrying (
You can’t perform that action at this time.
0 commit comments