Skip to content

cayu.storage.event_watchers

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu.storage import SQLiteEventWatcherStore

SQLite-backed durable delivery state for event watchers.

Bases: EventWatcherStore.

async SQLiteEventWatcherStore.load_state(watcher_name: str) -> EventWatcherState
async SQLiteEventWatcherStore.claim_event(*, watcher_name: str, record: EventRecord, lease_seconds: float, max_attempts: int=3) -> EventWatcherClaim | EventWatcherDelivery | None
async SQLiteEventWatcherStore.renew_claim(claim: EventWatcherClaim, *, lease_seconds: float) -> EventWatcherClaim
async SQLiteEventWatcherStore.mark_success(claim: EventWatcherClaim) -> EventWatcherDelivery
async SQLiteEventWatcherStore.mark_failure(claim: EventWatcherClaim, *, error: str, max_attempts: int) -> EventWatcherDelivery
async SQLiteEventWatcherStore.list_dead_letters(watcher_name: str, *, include_resolved: bool=False, limit: int=100) -> list[EventWatcherDeadLetter]
async SQLiteEventWatcherStore.resolve_dead_letter(watcher_name: str, event_sequence: int) -> EventWatcherDeadLetter
SQLiteEventWatcherStore.__init__(path: str | Path, *, clock: Callable[[], datetime] | None=None, schema_mode: schema.SchemaMode=schema.SchemaMode.CREATE) -> None
async SQLiteEventWatcherStore.close() -> None

Release source · Runtime guarantees · Capability guides