Report on worker "load" (the number of workers being used over
time). Reruns an object of class worker_load
, for which a
mean
method exists (this function is a work in progress and the
interface may change).
Arguments
- worker_ids
Optional vector of worker ids. If
NULL
then all active workers are used.- controller
The controller to use. If not given (or
NULL
) we'll use the controller registered withrrq_default_controller_set()
.
Examples
obj <- rrq_controller("rrq:example")
mean(rrq_worker_load(controller = obj))
#> 1 5 15 Inf
#> used 4 4 4 1.299131
#> available 1 1 1 1.000000