Skip to main content

keep_drain_after_accepted_quiesce_failure

Function keep_drain_after_accepted_quiesce_failure 

Source
pub async fn keep_drain_after_accepted_quiesce_failure(
    is_draining: &AtomicBool,
    marker_path: &Path,
    status: StatusCode,
    message: &'static str,
) -> Response
Expand description

Keep the API drained and persist the marker when a quiesce request was accepted but its outcome is unknown, so a restart stays safe.