pub async fn run_worker(
agent: AgentSettings,
parse: ParseLimits,
links: WorkerLinks,
observed: Observed<'_, AgentMetrics>,
stop: Receiver<u32>,
)Expand description
Runs a worker agent connected to the master until it has drained after a stop request
(stop counts them; see schedr_agent::drain), with its log endpoint and log
retention beside it until then.