Skip to main content

resolve_workers

Function resolve_workers 

Source
pub fn resolve_workers(
    token: &str,
    worker_map: &BiHashMap<u32, String>,
) -> Vec<u32>
Expand description

Resolve a worker selector token to the matching worker IDs.

A token is one of:

  • a numeric worker ID (e.g. 1) — matched exactly,
  • an exact hostname (e.g. ams01),
  • a glob with * wildcards (e.g. us-*) — matched against hostnames.

Returns every matching worker ID (empty if none match)