Skip to main content

wait_for_stabilization

Function wait_for_stabilization 

Source
pub async fn wait_for_stabilization(
    manager: &ServiceManager,
    spec: &DeploymentSpec,
    timeout: Duration,
) -> StabilizationResult
Expand description

Wait for all services in a deployment to reach their desired replica count and pass health checks, or time out.

Polls every 500ms for up to timeout. Returns StabilizationOutcome::Ready if all services reach their desired state, or StabilizationOutcome::TimedOut if the timeout expires.