Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ LOGIN_2FA_REQUIRED=0
LOGIN_ACCOUNT_DELETION_RETENTION_DAYS=31
LOGIN_REGISTRATION_CONFIRMATION_REQUIRED=0
LOGIN_REGISTRATION_INVITATION_REQUIRED=0
PROJECTS_INACTIVITY_INTERVAL=20
PROJECTS_INACTIVITY_INTERVAL=00:00:20
PROJECTS_TRASH_RETENTION_DAYS=7
PROJECTS_MAX_COPY_SIZE_BYTES=30Gib
PROJECTS_MAX_NUM_RUNNING_DYNAMIC_NODES=5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta
import datetime as dt

from aiohttp import web
from common_library.pydantic_validators import validate_numeric_string_as_timedelta
from pydantic import ByteSize, Field, NonNegativeInt, TypeAdapter
from settings_library.base import BaseCustomSettings

Expand All @@ -19,14 +18,11 @@ class ProjectsSettings(BaseCustomSettings):
description="defines the number of dynamic services in a project that can be started concurrently (a value of 0 will disable it)",
)

PROJECTS_INACTIVITY_INTERVAL: timedelta = Field(
default=timedelta(seconds=20),
PROJECTS_INACTIVITY_INTERVAL: dt.timedelta = Field(
default=dt.timedelta(seconds=20),
description="interval after which services need to be idle in order to be considered inactive",
)

_validate_projects_inactivity_interval = validate_numeric_string_as_timedelta(
"PROJECTS_INACTIVITY_INTERVAL"
)
PROJECTS_TRASH_RETENTION_DAYS: NonNegativeInt = Field(
default=7, description="Trashed items will be deleted after this time"
)
Expand Down
Loading