Skip to main content

fetch_status_over_http

Function fetch_status_over_http 

Source
pub fn fetch_status_over_http(
    broker_url: &str,
) -> Result<Vec<AgentStatusRow>, PawError>
Expand description

Fetches the broker /status endpoint and returns the agent summary.

Used by cmd_supervisor’s background poll thread because the broker state lives in the dashboard process, not in cmd_supervisor itself. Errors are surfaced so the caller can decide whether to retry.