MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_worker_map

Function get_worker_map

crates/hyperqueue/src/client/job.rs:19–26  ·  view source on GitHub ↗
(session: &mut ClientSession)

Source from the content-addressed store, hash-verified

17}
18
19pub async fn get_worker_map(session: &mut ClientSession) -> anyhow::Result<WorkerMap> {
20 let response = get_remote_lists(session, true).await?;
21 Ok(response
22 .workers
23 .into_iter()
24 .map(|w| (w.id, w.configuration.hostname))
25 .collect())
26}

Callers 3

output_job_task_listFunction · 0.85
output_job_task_infoFunction · 0.85
output_job_detailFunction · 0.85

Calls 2

get_remote_listsFunction · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected