Available on crate features
serve and triggers only.Expand description
The Watcher trait + the supervised polling loop. A watcher never dies on a
transient error: it records health, backs off, and retries until shutdown.
Constants§
- MAX_
BACKOFF - Backoff ceiling so a persistently-failing watcher still retries periodically.
- UNHEALTHY_
THRESHOLD - Consecutive poll failures before a watcher is reported unhealthy on /readyz.
Traits§
- Watcher
- One pollable watcher (object_arrival / queue_depth). Webhook is push, not polled, so it does not implement this.
Functions§
- backoff
- Exponential backoff doubling from
base(the poll interval) toMAX_BACKOFF. - run_
supervised - Run a watcher until
shutdownfires. Never returns an error (logs instead).