worker_spawn(queue_name, logfile, redis_host = "127.0.0.1", redis_port = 6379, n = 1, timeout = 20, time_poll = 1, heartbeat_period = NULL, heartbeat_expire = NULL, path = ".")
tempfile()
). If n
> 1, then n
log files
must be provided.n
is greater than 1, all
workers will start in the same working directory. The
logfile
argument will be interpreted relative to current
working directory (not the worker working directory); use
normalizePath
to convert into an absolute path
name to prevent this.Spawn a worker in the background
Spawning multiple workers. If n
is greater than one,
multiple workers will be spawned. This happens in parallel so it
does not take n times longer than spawing a single worker.