async fn run(state: &AppState, request: Request) -> Result<(), String>
Run the operation in a task of its own, so one that panics settles the window as failed instead of leaving it counted as under way.