Skip to main content

Module context

Module context 

Source

MacrosΒ§

spawn_with_log_level πŸ”’

StructsΒ§

DecideProcessorMetrics πŸ”’
Metrics for the background decide processor. backlog (decided - processed) is the key signal: sustained growth means staging tables accumulate (no data lost, but disk grows).
SequencerContext
The sequencer context contains a consensus handle and other sequencer specific information.
TaskList πŸ”’

ConstantsΒ§

PROCESS_RETRY_INTERVAL πŸ”’

FunctionsΒ§

handle_events πŸ”’
process_decided_events_task πŸ”’
Turns persisted decided leaves into query-service decide events and GCs processed data. Decoupled from handle_events so slow ingestion/GC can’t stall (or drop) consensus events; cursor-driven, so it can lag without losing data.

Type AliasesΒ§

Consensus
ConsensusNode πŸ”’
DecideSignal πŸ”’
Latest decided view and its (optional) deciding QC, sent from the event loop to the background decide processor. None is the initial/no-op value of the watch channel.