pub enum HostRolloutState {
Pending,
Activating,
Deferred,
Soaking,
Converged,
Failed,
Reverted,
}Expand description
7-state machine per RFC-0005 §3. Deferred covers the
“activation staged but live-switch skipped pending operator
reboot” case (critical-component swap; see RFC-0005 §3.5).
Variants§
Implementations§
Source§impl HostRolloutState
impl HostRolloutState
Sourcepub fn as_db_str(&self) -> &'static str
pub fn as_db_str(&self) -> &'static str
Canonical literal — matches the SQL CHECK on
host_rollout_records.state and the RFC-0005 §3 wire shape.
pub fn from_db_str(s: &str) -> Result<Self, HostRolloutStateParseError>
Sourcepub fn is_terminal_for_ordering(&self) -> bool
pub fn is_terminal_for_ordering(&self) -> bool
Terminal-for-ordering: predecessor hosts/waves can release once
every host hits this state. Converged is the canonical
health-verified state; Deferred is “staged for reboot,
ordering-eligible but not health-verified” — both clear
host-edges + wave-promotion gates. channel_edges keeps the
stricter Converged-only predicate (cross-channel cascade
should wait for actual verification).
Sourcepub fn is_in_flight(&self) -> bool
pub fn is_in_flight(&self) -> bool
Host is consuming a disruption-budget slot (still moving through activation / soak). Deferred is NOT in-flight: the in-memory activation work is done, the host is just waiting on the operator to reboot.
Trait Implementations§
Source§impl Clone for HostRolloutState
impl Clone for HostRolloutState
Source§fn clone(&self) -> HostRolloutState
fn clone(&self) -> HostRolloutState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more