pub async fn get_queue(&self, jobs: &[QueueReportFields]) -> anyhow::Result<Queue> {
        let url = &self.prover_job_monitor_url;
        let response = self
            .http_client
            .send_request_with_retries(url, Method::GET, None, None)
            .await;
        let response = response
            .map_err(|err| anyhow::anyhow!("Failed fetching queue from URL: {url}: {err:?}"))?;

        let response = response
            .json::<Vec<VersionedQueueReport>>()
            .await
            .context("Failed to read response as json")?;
        Ok(response
            .iter()
            .flat_map(|versioned_report| {
                jobs.iter().map(move |j| {
                    (
                        (versioned_report.version.to_string(), *j),
                        target_to_queue(*j, &versioned_report.report),
                    )
                })
            })
            .collect::<HashMap<_, _>>())
    }
Requests queue report from prover-job-monitor and parse it into Queue HashMap for provided
list of jobs.
prover/crates/bin/prover_autoscaler/src/global/queuer.rs