shoehorning graphql, step functions and lamdas. aws deployment scripts

This commit is contained in:
2026-02-06 18:25:42 -03:00
parent 013587d108
commit e642908abb
35 changed files with 2354 additions and 930 deletions

View File

@@ -5,8 +5,8 @@ These are separate from the main domain models and represent
the shape of data sent to/from the API endpoints.
"""
from dataclasses import dataclass
from typing import Optional
from dataclasses import dataclass, field
from typing import List, Optional
from uuid import UUID
@@ -19,6 +19,7 @@ class CreateJobRequest:
trim_start: Optional[float] = None # seconds
trim_end: Optional[float] = None # seconds
output_filename: Optional[str] = None
priority: int = 0
@dataclass
@@ -29,4 +30,14 @@ class SystemStatus:
version: str
@dataclass
class ScanResult:
"""Result of scanning the media input bucket."""
found: int = 0
registered: int = 0
skipped: int = 0
files: List[str] = field(default_factory=list)
# Note: WorkerStatus is defined in grpc.py and reused here