pub struct ExecutorStats {
pub dispatched: AtomicU64,
pub failed: AtomicU64,
pub deferred: AtomicU64,
pub gated: AtomicU64,
pub dispatch_retries: AtomicU64,
pub cluster_backpressure_asserts: AtomicU64,
pub cluster_backpressure_releases: AtomicU64,
pub chain_append_failures: AtomicU64,
}Expand description
Counters the executor maintains for diagnostics / Deck
rendering. Returned by ActionExecutor::run when the
task exits; sampled live via ExecutorHandle::stats.
Fields§
§dispatched: AtomicU64Total actions admitted + successfully dispatched.
failed: AtomicU64Total actions admitted but failed in dispatch (no retry).
deferred: AtomicU64Total actions deferred via AdmissionResult::Defer.
Re-admits count here each time, so a flapping action
inflates the metric — the queue-depth gauge is the
healthy signal, not this counter.
gated: AtomicU64Total actions hard-gated via AdmissionResult::Gate.
dispatch_retries: AtomicU64Total actions retried via a dispatch error’s
retry_after hint.
cluster_backpressure_asserts: AtomicU64Number of cluster-backpressure assert transitions surfaced to the dispatcher.
cluster_backpressure_releases: AtomicU64Number of cluster-backpressure release transitions surfaced to the dispatcher.
chain_append_failures: AtomicU64Total times an append_dispatched / append_failed /
append_gated / append_deferred call returned an error.
The dispatch itself already succeeded (or hit its terminal
state) when this counter ticks — the chain record is
missing for that action, but the action’s effect is real.
Non-zero indicates the chain appender is dropping records;
in-memory ring and dispatcher state remain consistent.