ff_backend_postgres/reconcilers/mod.rs
1//! Postgres-backend scanner reconcilers (RFC-v0.7 Wave 6).
2//!
3//! These modules implement the Postgres twins of the Valkey scanners
4//! in `ff-engine::scanner::*`. Each reconciler is a single
5//! `reconcile_tick(pool, filter, ...)` function the engine's scanner
6//! task drives on a fixed interval.
7//!
8//! Wave 6a ships the dependency reconciler — the backstop for the
9//! per-hop-tx dispatch cascade from Wave 5a.
10
11pub mod attempt_timeout;
12pub mod dependency;
13pub mod edge_cancel_dispatcher;
14pub mod edge_cancel_reconciler;
15pub mod lease_expiry;
16pub mod suspension_timeout;
17
18/// Result of scanning one partition. Mirrors
19/// [`ff_engine::scanner::ScanResult`] so engine-side aggregation code
20/// stays identical across backends; kept here (not re-exported from
21/// ff-engine) so `ff-backend-postgres` does not take a dep on the
22/// engine crate. The engine's `scan_tick_pg` wrapper maps one to the
23/// other.
24#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
25pub struct ScanReport {
26 pub processed: u32,
27 pub errors: u32,
28}