Create an rrqueue worker. This blocks the main loop.
1 2 |
queue_name |
Queue name |
redis_host |
Host name/IP for the Redis server |
redis_port |
Port for the Redis server |
heartbeat_period |
Period between heartbeat pulses |
heartbeat_expire |
Time that heartbeat pulses will persist
for (must be greater than |
key_worker_alive |
Optional key to write to when the worker becomes alive. The worker will push onto this key so that another process can monitor it and determine when a worker has come up. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.