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

Function get_job_ids

crates/hyperqueue/src/server/client/mod.rs:654–660  ·  view source on GitHub ↗
(state: &State, selector: &IdSelector)

Source from the content-addressed store, hash-verified

652}
653
654fn get_job_ids(state: &State, selector: &IdSelector) -> Vec<JobId> {
655 match &selector {
656 IdSelector::All => state.jobs().map(|job| job.job_id).collect(),
657 IdSelector::LastN(n) => state.last_n_ids(*n).collect(),
658 IdSelector::Specific(array) => array.iter().map(|id| id.into()).collect(),
659 }
660}
661
662fn compute_job_info(
663 state_ref: &StateRef,

Callers 2

compute_job_detailFunction · 0.85
handle_job_forgetFunction · 0.85

Calls 4

last_n_idsMethod · 0.80
intoMethod · 0.80
jobsMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected