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.
SQLiteEventWatcherStore
Section titled “SQLiteEventWatcherStore”from cayu.storage import SQLiteEventWatcherStoreSQLite-backed durable delivery state for event watchers.
Bases: EventWatcherStore.
load_state (method)
Section titled “load_state (method)”async SQLiteEventWatcherStore.load_state(watcher_name: str) -> EventWatcherStateclaim_event (method)
Section titled “claim_event (method)”async SQLiteEventWatcherStore.claim_event(*, watcher_name: str, record: EventRecord, lease_seconds: float, max_attempts: int=3) -> EventWatcherClaim | EventWatcherDelivery | Nonerenew_claim (method)
Section titled “renew_claim (method)”async SQLiteEventWatcherStore.renew_claim(claim: EventWatcherClaim, *, lease_seconds: float) -> EventWatcherClaimmark_success (method)
Section titled “mark_success (method)”async SQLiteEventWatcherStore.mark_success(claim: EventWatcherClaim) -> EventWatcherDeliverymark_failure (method)
Section titled “mark_failure (method)”async SQLiteEventWatcherStore.mark_failure(claim: EventWatcherClaim, *, error: str, max_attempts: int) -> EventWatcherDeliverylist_dead_letters (method)
Section titled “list_dead_letters (method)”async SQLiteEventWatcherStore.list_dead_letters(watcher_name: str, *, include_resolved: bool=False, limit: int=100) -> list[EventWatcherDeadLetter]resolve_dead_letter (method)
Section titled “resolve_dead_letter (method)”async SQLiteEventWatcherStore.resolve_dead_letter(watcher_name: str, event_sequence: int) -> EventWatcherDeadLetterinit (method)
Section titled “init (method)”SQLiteEventWatcherStore.__init__(path: str | Path, *, clock: Callable[[], datetime] | None=None, schema_mode: schema.SchemaMode=schema.SchemaMode.CREATE) -> Noneclose (method)
Section titled “close (method)”async SQLiteEventWatcherStore.close() -> None