pub struct RuntimeShutdownReport {
pub usage: Result<WriterStats, RuntimeWriterError>,
pub snapshots: Option<SnapshotManagerReport>,
pub accounts: BTreeMap<AccountId, LeaseManagerReport>,
pub unfinished_accounts: Vec<AccountId>,
pub background_failed: bool,
pub deadline_expired: bool,
}Expand description
What InstanceRuntime::shutdown observed, component by component.
Nothing here is silent: every shortfall names what it left behind.
Fields§
§usage: Result<WriterStats, RuntimeWriterError>The usage writer’s terminal counters, or why there are none. Nonzero
lost or unresolved are committed charges that were not billed.
snapshots: Option<SnapshotManagerReport>The snapshot manager’s shutdown report, or None when it did not
stop within the deadline.
accounts: BTreeMap<AccountId, LeaseManagerReport>Lease release outcomes for every account whose manager was joined
during shutdown. Nonzero abandoned counts leases left to TTL
reclaim (INVARIANTS.md 9).
unfinished_accounts: Vec<AccountId>Accounts whose manager was still retiring when shutdown finished: its release outcome is unknown and its leases settle at TTL reclaim.
background_failed: boolA background component failed during the runtime’s life or its shutdown: a task exited unexpectedly, a join failed, or an account recorded an integrity fault. Such a failure is also what starts an unrequested shutdown.
deadline_expired: boolShutdown finished at or after the deadline, so some phase may have been cut short; the other fields say which.