Skip to main content

Module scanner

Module scanner 

Source
Expand description

Background scanner infrastructure.

Scanners iterate execution partitions at fixed intervals, checking for conditions that require action (expired leases, due delays, index drift). Each scanner type implements the Scanner trait; the ScannerRunner drives them as tokio tasks.

Modules§

attempt_timeout
Attempt timeout scanner.
budget_reconciler
Budget counter reconciler.
budget_reset
Budget reset scanner.
cancel_reconciler
Cancel-flow dispatch reconciler.
delayed_promoter
Delayed execution promoter scanner.
dependency_reconciler
Dependency resolution reconciler.
edge_cancel_dispatcher
RFC-016 Stage C — sibling-cancel dispatcher.
edge_cancel_reconciler
RFC-016 Stage D — sibling-cancel reconciler (Invariant Q6 safety net).
execution_deadline
Execution deadline scanner.
flow_projector
Flow summary projector scanner.
index_reconciler
Index consistency reconciler.
lease_expiry
Lease expiry scanner.
pending_wp_expiry
Pending waitpoint expiry scanner.
quota_reconciler
Quota concurrency reconciler.
retention_trimmer
Terminal execution retention scanner.
suspension_timeout
Suspension timeout scanner.
unblock
Unblock scanner for budget/quota/capability-blocked executions.

Structs§

FailureTracker
Tracks persistently-failing items so they don’t permanently consume batch slots. After [FAILURE_THRESHOLD] consecutive failures for the same key, the item is skipped for [BACKOFF_CYCLES] scan cycles.
ScanResult
Result of scanning one partition.
ScannerRunner
Drives a scanner across all execution partitions in a loop.

Traits§

Scanner
Trait for background partition scanners.

Functions§

should_skip_candidate
Issue #122: per-candidate filter helper shared by all execution-shaped scanners.