diff --git a/.env-devel b/.env-devel index 02f2a9d939e..978062f428b 100644 --- a/.env-devel +++ b/.env-devel @@ -88,7 +88,7 @@ COMPUTATIONAL_BACKEND_DEFAULT_FILE_LINK_TYPE=PRESIGNED COMPUTATIONAL_BACKEND_ON_DEMAND_CLUSTERS_FILE_LINK_TYPE=PRESIGNED DIRECTOR_V2_DEV_FEATURES_ENABLED=0 DIRECTOR_V2_DYNAMIC_SCHEDULER_CLOSE_SERVICES_VIA_FRONTEND_WHEN_CREDITS_LIMIT_REACHED=1 -DIRECTOR_V2_DYNAMIC_SIDECAR_SLEEP_AFTER_CONTAINER_REMOVAL=0 +DIRECTOR_V2_DYNAMIC_SIDECAR_SLEEP_AFTER_CONTAINER_REMOVAL=PT0S DIRECTOR_V2_GENERIC_RESOURCE_PLACEMENT_CONSTRAINTS_SUBSTITUTIONS='{}' DIRECTOR_V2_HOST=director-v2 DIRECTOR_V2_LOGLEVEL=INFO @@ -108,7 +108,7 @@ DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=3600 # DIRECTOR_V2 ---- DYNAMIC_SCHEDULER_LOGLEVEL=DEBUG DYNAMIC_SCHEDULER_PROFILING=1 -DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT=3600 +DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT=PT1H FUNCTION_SERVICES_AUTHORS='{"UN": {"name": "Unknown", "email": "unknown@osparc.io", "affiliation": "unknown"}}' diff --git a/services/agent/src/simcore_service_agent/core/settings.py b/services/agent/src/simcore_service_agent/core/settings.py index d901a34ca90..756bf2cac28 100644 --- a/services/agent/src/simcore_service_agent/core/settings.py +++ b/services/agent/src/simcore_service_agent/core/settings.py @@ -53,14 +53,14 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings): AGENT_VOLUMES_CLEANUP_INTERVAL: timedelta = Field( timedelta(minutes=1), description="interval for running volumes removal" ) - AGENT_VOLUMES_CLENUP_BOOK_KEEPING_INTERVAL: timedelta = Field( + AGENT_VOLUMES_CLEANUP_BOOK_KEEPING_INTERVAL: timedelta = Field( timedelta(minutes=1), description=( "interval at which to scan for unsued volumes and keep track since " "they were detected as being unused" ), ) - AGENT_VOLUMES_CLENUP_REMOVE_VOLUMES_INACTIVE_FOR: timedelta = Field( + AGENT_VOLUMES_CLEANUP_REMOVE_VOLUMES_INACTIVE_FOR: timedelta = Field( timedelta(minutes=65), description=( "if a volume is unused for more than this interval it can be removed. " diff --git a/services/agent/src/simcore_service_agent/services/volumes_manager.py b/services/agent/src/simcore_service_agent/services/volumes_manager.py index 526589a2c9c..fa5a0cd1b17 100644 --- a/services/agent/src/simcore_service_agent/services/volumes_manager.py +++ b/services/agent/src/simcore_service_agent/services/volumes_manager.py @@ -174,9 +174,9 @@ async def _on_startup() -> None: volumes_manager = VolumesManager( app=app, - book_keeping_interval=settings.AGENT_VOLUMES_CLENUP_BOOK_KEEPING_INTERVAL, + book_keeping_interval=settings.AGENT_VOLUMES_CLEANUP_BOOK_KEEPING_INTERVAL, volume_cleanup_interval=settings.AGENT_VOLUMES_CLEANUP_INTERVAL, - remove_volumes_inactive_for=settings.AGENT_VOLUMES_CLENUP_REMOVE_VOLUMES_INACTIVE_FOR.total_seconds(), + remove_volumes_inactive_for=settings.AGENT_VOLUMES_CLEANUP_REMOVE_VOLUMES_INACTIVE_FOR.total_seconds(), ) volumes_manager.set_to_app_state(app) await volumes_manager.setup()