Function to construct a Rush manager.
Arguments
- network_id
(
character(1))
Identifier of the rush network. Manager and workers must have the same id. Keys in Redis are prefixed with the instance id.- config
(redux::redis_config)
Redis configuration options. IfNULL, configuration set byrush_plan()is used. Ifrush_plan()has not been called, theREDIS_URLenvironment variable is parsed. IfREDIS_URLis not set, a default configuration is used. See redux::redis_config for details.- ...
(ignored).
Value
Rush manager.
Examples
# This example is not executed since Redis must be installed
# \donttest{
config_local = redux::redis_config()
rush = rsh(network_id = "test_network", config = config_local)
rush
#>
#> ── <Rush> ──────────────────────────────────────────────────────────────────────
#> • Running Workers: 0
#> • Queued Tasks: 0
#> • Running Tasks: 0
#> • Finished Tasks: 0
#> • Failed Tasks: 0
# }