update retention policy to a maximum of 2 days for completed archives and adjust related configurations
This commit is contained in:
+5
-1
@@ -4,6 +4,8 @@ from typing import Literal
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from app.config import MAX_ARCHIVE_RETENTION_DAYS
|
||||
|
||||
AssetType = Literal["styles", "scripts", "images", "fonts", "media", "other"]
|
||||
SUPPORTED_ASSET_TYPES: tuple[AssetType, ...] = (
|
||||
"styles",
|
||||
@@ -28,4 +30,6 @@ class CaptureRequest(BaseModel):
|
||||
max_depth: int = Field(default=5, ge=0)
|
||||
max_bytes_mb: int = Field(default=100, ge=1)
|
||||
max_duration_seconds: int = Field(default=300, ge=10)
|
||||
retention_days: int = Field(default=7, ge=1)
|
||||
retention_days: int = Field(
|
||||
default=MAX_ARCHIVE_RETENTION_DAYS, ge=1, le=MAX_ARCHIVE_RETENTION_DAYS
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user