File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed
services/web/server/src/simcore_service_webserver/garbage_collector Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 1+ from typing import Annotated
2+
13from aiohttp import web
24from pydantic import Field , PositiveInt
35from servicelib .aiohttp .application_keys import APP_SETTINGS_KEY
1315
1416
1517class GarbageCollectorSettings (BaseCustomSettings ):
16- GARBAGE_COLLECTOR_INTERVAL_S : PositiveInt = Field (
17- 30 * _SEC ,
18- description = "Waiting time between consecutive runs of the garbage-colector" ,
18+ GARBAGE_COLLECTOR_INTERVAL_S : Annotated [
19+ PositiveInt ,
20+ Field (
21+ description = "Waiting time between consecutive runs of the garbage-colector"
22+ ),
23+ ] = (
24+ 30 * _SEC
1925 )
2026
21- GARBAGE_COLLECTOR_EXPIRED_USERS_CHECK_INTERVAL_S : PositiveInt = Field (
22- 1 * _HOUR ,
23- description = "Time period between checks of expiration dates for trial users" ,
27+ GARBAGE_COLLECTOR_EXPIRED_USERS_CHECK_INTERVAL_S : Annotated [
28+ PositiveInt ,
29+ Field (
30+ description = "Time period between checks of expiration dates for trial users"
31+ ),
32+ ] = (
33+ 1 * _HOUR
2434 )
2535
26- GARBAGE_COLLECTOR_PRUNE_APIKEYS_INTERVAL_S : PositiveInt = Field (
27- _HOUR ,
28- description = "Wait time between periodic pruning of expired API keys" ,
29- )
36+ GARBAGE_COLLECTOR_PRUNE_APIKEYS_INTERVAL_S : Annotated [
37+ PositiveInt ,
38+ Field ( description = "Wait time between periodic pruning of expired API keys" ) ,
39+ ] = _HOUR
3040
3141
3242def get_plugin_settings (app : web .Application ) -> GarbageCollectorSettings :
You can’t perform that action at this time.
0 commit comments