Skip to content

Commit 22fecc5

Browse files
committed
many fixes
1 parent b451fcd commit 22fecc5

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

services/director-v2/tests/integration/02/test_dynamic_sidecar_nodeports_integration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ def mock_env(
369369
"STORAGE_PORT": local_settings.STORAGE_PORT,
370370
}
371371
),
372-
"STORAGE_ENDPOINT": "storage:8080",
373372
"DYNAMIC_SIDECAR_IMAGE": image_name,
374373
"DYNAMIC_SIDECAR_PROMETHEUS_SERVICE_LABELS": "{}",
375374
"TRAEFIK_SIMCORE_ZONE": "test_traefik_zone",

services/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,7 @@ services:
11461146
STORAGE_LOGLEVEL: ${STORAGE_LOGLEVEL}
11471147
STORAGE_MONITORING_ENABLED: 1
11481148
STORAGE_PROFILING: ${STORAGE_PROFILING}
1149+
STORAGE_PORT: ${STORAGE_PORT}
11491150
TRACING_OPENTELEMETRY_COLLECTOR_PORT: ${TRACING_OPENTELEMETRY_COLLECTOR_PORT}
11501151
TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT: ${TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT}
11511152
networks:

services/storage/docker/boot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
4949
cd services/storage/src/simcore_service_storage && \
5050
python -m debugpy --listen 0.0.0.0:${STORAGE_REMOTE_DEBUGGING_PORT} -m uvicorn main:the_app \
5151
--host 0.0.0.0 \
52+
--port ${STORAGE_PORT} \
5253
--reload \
5354
$reload_dir_packages
5455
--reload-dir . \

services/storage/src/simcore_service_storage/core/application.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"aiormq",
4343
"botocore",
4444
"httpcore",
45+
"urllib3",
4546
"werkzeug",
4647
)
4748
_logger = logging.getLogger(__name__)

services/storage/src/simcore_service_storage/dsm_cleaner.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from fastapi import FastAPI
2727
from servicelib.async_utils import cancel_wait_task
2828
from servicelib.background_task_utils import exclusive_periodic
29+
from servicelib.logging_utils import log_context
2930

3031
from .core.settings import get_application_settings
3132
from .dsm import get_dsm_provider
@@ -38,12 +39,12 @@
3839

3940

4041
async def dsm_cleaner_task(app: FastAPI) -> None:
41-
_logger.info("starting dsm cleaner task...")
42-
dsm = get_dsm_provider(app)
43-
simcore_s3_dsm: SimcoreS3DataManager = cast(
44-
SimcoreS3DataManager, dsm.get(SimcoreS3DataManager.get_location_id())
45-
)
46-
await simcore_s3_dsm.clean_expired_uploads()
42+
with log_context(_logger, logging.INFO, "dsm cleaner task"):
43+
dsm = get_dsm_provider(app)
44+
simcore_s3_dsm: SimcoreS3DataManager = cast(
45+
SimcoreS3DataManager, dsm.get(SimcoreS3DataManager.get_location_id())
46+
)
47+
await simcore_s3_dsm.clean_expired_uploads()
4748

4849

4950
def setup_dsm_cleaner(app: FastAPI) -> None:

0 commit comments

Comments
 (0)