Skip to main content

Module watermark

Module watermark 

Source
Expand description

Cron watermarks: where each cron wake source left off, so the ticks it missed while no kernel watched replay once, per the schedule’s catch-up policy (spec 3.2 §7.4, §7.13).

ItemWhat it is
CronWatermarkStoreThe cursor of each cron source by name, which only moves forward
SourceWatermarkOne source’s cursor as an adk_agent::ambient::TickWatermark

The store runs on in-memory, SQLite, PostgreSQL and Redis (InMemoryCronWatermarkStore, SqliteCronWatermarkStore, PostgresCronWatermarkStore, RedisCronWatermarkStore), and on MongoDB, Firestore and Neo4j (MongoCronWatermarkStore, FirestoreCronWatermarkStore, Neo4jCronWatermarkStore), with the conformance suite cron_watermark_store_conformance_tests! (feature conformance). A tenant kernel (managed::TenantKernel, feature managed) keeps its watermarks in the tenant’s own store, so a tick missed while no replica of the tenant ran is seen by the next replica that starts.

Structs§

SourceWatermark
The cursor of one cron source in a CronWatermarkStore, as the adk_agent::ambient::TickWatermark a CronWakeSource or a CronTrigger keeps (spec 3.2 §7.4).

Traits§

CronWatermarkStore
Where each cron wake source left off (spec 3.2 §7.4, §7.13): the instant through which its ticks are accounted for, by source name.