Source code for ralph.process._child_activity_snapshot
"""ChildActivitySnapshot — freshness-aware aggregate snapshot for a scope prefix."""
from __future__ import annotations
from dataclasses import dataclass
[docs]
@dataclass(frozen=True)
class ChildActivitySnapshot:
"""Freshness-aware aggregate snapshot for a scope prefix."""
scope_prefix: str
has_process: bool
has_fresh_label: bool
has_fresh_progress: bool
oldest_live_child_seconds: float | None
active_count: int
terminal_count: int
has_fresh_heartbeat: bool = False
__all__ = ["ChildActivitySnapshot"]