Skip to content

Commit 1c64499

Browse files
run in executor
1 parent 9d5c8db commit 1c64499

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

services/efs-guardian/src/simcore_service_efs_guardian/services/efs_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
import logging
23
import os
34
import shutil
@@ -153,7 +154,8 @@ async def remove_project_efs_data(self, project_id: ProjectID) -> None:
153154
if Path.exists(_dir_path):
154155
# Remove the directory and all its contents
155156
try:
156-
shutil.rmtree(_dir_path)
157+
loop = asyncio.get_event_loop()
158+
await loop.run_in_executor(None, shutil.rmtree, _dir_path)
157159
_logger.info("%s has been deleted.", _dir_path)
158160
except FileNotFoundError:
159161
_logger.exception("Directory %s does not exist.", _dir_path)

tests/e2e-playwright/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def log_in_and_out(
417417
def _open_with_resources(page: Page, *, click_it: bool):
418418
study_title_field = page.get_by_test_id("studyTitleField")
419419
# wait until the title is automatically filled up
420-
expect(study_title_field).not_to_have_value("")
420+
expect(study_title_field).not_to_have_value("", timeout=30000)
421421

422422
open_with_resources_button = page.get_by_test_id("openWithResources")
423423
if click_it:

0 commit comments

Comments
 (0)