Derive heartbeat cadence from the shared coordination frame

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a13eab-1e6a-7b33-9c37-372e90ada3a2
This commit is contained in:
tegwick 2026-10-15 20:41:49 +02:00
parent db850aded5
commit a786b061da
9 changed files with 98 additions and 27 deletions

View file

@ -9,6 +9,7 @@ from typing import Any, Callable
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
from .coordination import FRAME_SECONDS
from .store import Engine
@ -91,7 +92,7 @@ class OutboxWorker:
engine: Engine,
sink: Callable[[dict[str, Any]], None],
*,
heartbeat_interval_seconds: int = 300,
heartbeat_interval_seconds: int = FRAME_SECONDS,
) -> None:
self.engine = engine
self.sink = sink