Files
farm-manager/agent/models.py
T
pluto 446c01fb78 fix: agent timeouts hid hf-pdocker-01; refresh links and groups
- agent: stats one_shot=True + 20 workers (.192 went 12s -> ~2s);
  /health ignores Dead containers
- server: /containers fetch timeout 10s -> 30s (was silently returning
  [] for the busiest node)
- links page: drop FRIDAY Voice, add Onyx, Guacamole, Synapse Admin,
  n8n, CouchDB; MCPO -> /docs, Trivy -> /healthz, Jellyseerr -> Seerr
- config.json: drop dead gpu-workstation (192.168.86.27)
- groups.json: rebuilt for current container names (14 groups)
- includes earlier uncommitted work (models, styles, ports sorting)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NQhgEUqcaV4WM2S4hfXgHD
2026-10-26 16:27:43 -05:00

32 lines
543 B
Python

from pydantic import BaseModel
class ContainerInfo(BaseModel):
id: str
name: str
status: str
image: str
created: str
uptime: str | None = None
is_swarm: bool = False
swarm_service: str | None = None
ports: list[str] = []
memory_usage: int = 0
memory_limit: int = 0
class ContainerAction(BaseModel):
success: bool
message: str
class LogsResponse(BaseModel):
container: str
logs: str
class HealthResponse(BaseModel):
status: str
hostname: str
containers_total: int