Skip to main content

idle_workers

Function idle_workers 

Source
pub fn idle_workers(
    workers: &[LocalWorker],
    in_use: &BTreeSet<(String, String)>,
    cutoff_ms: u64,
    session_only: bool,
) -> Vec<String>
Expand description

The workers that may retire (owner 09.11.: workers that are not active do not count and are switched off): not the connector’s own (host CAPTURE_HOST), held by no active session in in_use, and last seen before cutoff_ms (never seen: idle). With session_only, only the workers recorded as one app session’s (LocalWorker::per_session), which end with it.