Expand description
Plane-worker refresh coordination.
Watchers only enqueue invalidated paths. Plane workers receive prepared byte payloads, deduplicate them by complete blob key, perform expensive work once, and fan the result out to every affected path.
Structs§
- Failure
Tracker - Records per-key deterministic failures and per-family, per-plane transient
breaker input. This is intentionally state-only: the BlobStore performs the
durable quarantine write after
Quarantinedis returned. - Fanout
Work - One expensive operation and every path that consumes its result.
- Prepared
Work - A prepared path is created by a plane worker after it has made a stable read and derived that plane’s full key. Watchers never construct blob payloads.
- Processed
Fanout - Worker
Failure
Enums§
Constants§
- DETERMINISTIC_
FAILURE_ QUARANTINE_ THRESHOLD - Two deterministic failures of one full key quarantine that key.
- TRANSIENT_
RETRY_ LIMIT - A transient failure is retried three times with exponential backoff, then increments the family-and-plane failure count that can trip its circuit breaker.
Functions§
- apply_
path_ status - Applies plane-worker outcomes to the derived table. A publish removes the annotation; retryable work remains pending, and exhausted or deterministic failures remain failed while the last complete generation stays current.
- deduplicate_
full_ keys - Groups byte-identical full keys before expensive extraction, embedding, or blob insertion. The returned paths are bytewise ordered for deterministic manifest assembly and telemetry correlation.
- execute_
plane_ batch - Runs a plane-worker operation once per full key and fans its disposition out
to all paths sharing the key.
operationis where the worker hashes, puts, derives, and publishes; this coordinator never runs on a watcher thread. - preserve_
pending_ after_ unstable_ read - Records a persistent stable-read mismatch without publishing the path. The next watcher event simply puts the path back through collection and can clear this row after a later plane-worker publication.
- transient_
backoff - The retry number is one-based. The values are deliberately small enough for worker scheduling tests while still providing a strict exponential sequence.