rehydration_effects

Function rehydration_effects 

Source
pub fn rehydration_effects(state: &HostRolloutState) -> Vec<Effect>
Expand description

Effects to emit immediately after applying a HostRolloutSnapshot to the agent’s in-memory state. Workers consume these to refresh any cached per-rollout state seeded by prior process incarnations.

Pending emits nothing: no rollout is in flight, no probes were ever declared for it locally, no worker has any cached state to invalidate.

Every other state implies the rollout is (or was) live for this host — probe runners may be holding tickers tagged with a stale rollout_id from a prior agent process, so LocalResetProbeCache fires unconditionally to force the probe worker to drop those tickers and reload declarations from health-checks.json under the bootstrapped rollout_id.