Save a worker configuration, which can be used to start workers with a set of options with the cli. These correspond to arguments to rrq_worker. This function will be renamed soon
Arguments
- name
Name for this configuration
- config
A worker configuration, created by
rrq_worker_config()
- overwrite
Logical, indicating if an existing configuration with this
name
should be overwritten if it exists. IfFALSE
, then the configuration is not updated, even if it differs from the version currently saved.- controller
The controller to use. If not given (or
NULL
) we'll use the controller registered withrrq_default_controller_set()
.
Examples
if (FALSE) { # rrq:::enable_examples(require_queue = "rrq:example")
obj <- rrq_controller("rrq:example")
cfg <- rrq_worker_config("fast")
rrq_worker_config_save("use-fast", cfg, controller = obj)
rrq_worker_config_list(controller = obj)
}