File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1- from datetime import timedelta
1+ import datetime as dt
22
33from aiohttp import web
4- from common_library .pydantic_validators import validate_numeric_string_as_timedelta
54from pydantic import ByteSize , Field , NonNegativeInt , TypeAdapter
65from settings_library .base import BaseCustomSettings
76
@@ -19,14 +18,11 @@ class ProjectsSettings(BaseCustomSettings):
1918 description = "defines the number of dynamic services in a project that can be started concurrently (a value of 0 will disable it)" ,
2019 )
2120
22- PROJECTS_INACTIVITY_INTERVAL : timedelta = Field (
23- default = timedelta (seconds = 20 ),
21+ PROJECTS_INACTIVITY_INTERVAL : dt . timedelta = Field (
22+ default = dt . timedelta (seconds = 20 ),
2423 description = "interval after which services need to be idle in order to be considered inactive" ,
2524 )
2625
27- _validate_projects_inactivity_interval = validate_numeric_string_as_timedelta (
28- "PROJECTS_INACTIVITY_INTERVAL"
29- )
3026 PROJECTS_TRASH_RETENTION_DAYS : NonNegativeInt = Field (
3127 default = 7 , description = "Trashed items will be deleted after this time"
3228 )
You can’t perform that action at this time.
0 commit comments