Description Usage Arguments Details Value Note Author(s) See Also Examples
Initialize a doRedis worker R process.
1 2 3 4 5 6 7 8 |
queue |
A (character) work queue name, or a list or character vector of queue names. |
host |
The Redis server host name or (character) I. P. address. |
port |
The Redis server port number. |
iter |
The maximum number of jobs to execute before exiting the worker loop (defaults to infinity). |
timeout |
The worker loop terminates if the work queue is deleted after the specified timeout interval. |
log |
Log messages to the specified destination (defaults to stdout()). |
connected |
Is the R session creating the worker already connected to Redis? |
password |
The Redis server password. |
The redisWorker function enrolls the current R session in one or more doRedis worker pools specified by the work queue names. The worker loop takes over the R session until either the work queue(s) are deleted or the worker times out waiting for a new task.
Nothing is returned but status messages are printed to the log during operation of the worker loop.
All doRedis functions require network access to a Redis server (not included with the doRedis package).
B. W. Lewis <blewis@illposed.net>
1 2 3 4 5 | ## Not run:
require('doRedis')
redisWorker('jobs')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.