|
|
@ -13,10 +13,10 @@ Some terminology before we get started:
|
|
|
|
* *Queues* are queues, in the computer science way. Technically, they are
|
|
|
|
* *Queues* are queues, in the computer science way. Technically, they are
|
|
|
|
Redis lists where work is `rpush`'ed on and `lpop`'ed from.
|
|
|
|
Redis lists where work is `rpush`'ed on and `lpop`'ed from.
|
|
|
|
* *Jobs* are a definitions of work that can be carried out by a different
|
|
|
|
* *Jobs* are a definitions of work that can be carried out by a different
|
|
|
|
process. Technically, they are just plain old Python function calls, with
|
|
|
|
processes. Technically, they are just plain old Python function calls, with
|
|
|
|
arguments and return values and the like.
|
|
|
|
arguments and return values and the like.
|
|
|
|
* *Workers* are Python processes that pop off work from queues and start
|
|
|
|
* *Workers* are processes that pop off work from queues and start
|
|
|
|
executing them. They report back any return values or exceptions.
|
|
|
|
executing them. They report back return values or exceptions.
|
|
|
|
|
|
|
|
|
|
|
|
To put work on queues, tag a Python function call as a job, like so:
|
|
|
|
To put work on queues, tag a Python function call as a job, like so:
|
|
|
|
|
|
|
|
|
|
|
@ -51,5 +51,5 @@ Simply use the following command to install the latest released version:
|
|
|
|
|
|
|
|
|
|
|
|
If you want the cutting edge version (that may well be broken), use this:
|
|
|
|
If you want the cutting edge version (that may well be broken), use this:
|
|
|
|
|
|
|
|
|
|
|
|
pip install -e git+git@github.com:nvie/rq.git@master#egg=rdb
|
|
|
|
pip install -e git+git@github.com:nvie/rq.git@master#egg=rq
|
|
|
|
|
|
|
|
|
|
|
|