Skip to content

Commit 6470fbd

Browse files
committed
settings
1 parent f3cea35 commit 6470fbd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

services/web/server/src/simcore_service_webserver/application_settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,10 @@ def to_client_statics(self) -> dict[str, Any]:
387387
"SIMCORE_VCS_RELEASE_TAG": True,
388388
"SIMCORE_VCS_RELEASE_URL": True,
389389
"SWARM_STACK_NAME": True,
390-
"WEBSERVER_PROJECTS": {"PROJECTS_MAX_NUM_RUNNING_DYNAMIC_NODES"},
390+
"WEBSERVER_PROJECTS": {
391+
"PROJECTS_MAX_NUM_RUNNING_DYNAMIC_NODES",
392+
"PROJECTS_TRASH_RETENTION_DAYS",
393+
},
391394
"WEBSERVER_LOGIN": {
392395
"LOGIN_ACCOUNT_DELETION_RETENTION_DAYS",
393396
"LOGIN_2FA_REQUIRED",

services/web/server/src/simcore_service_webserver/projects/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class ProjectsSettings(BaseCustomSettings):
2323
description="interval after which services need to be idle in order to be considered inactive",
2424
)
2525

26+
PROJECTS_TRASH_RETENTION_DAYS: NonNegativeInt = Field(
27+
default=7, description="Trashed items will be deleted after this time"
28+
)
29+
2630

2731
def get_plugin_settings(app: web.Application) -> ProjectsSettings:
2832
settings = app[APP_SETTINGS_KEY].WEBSERVER_PROJECTS

0 commit comments

Comments
 (0)