From ca99cd911a5a63e50fd31273f32a3159b5890d84 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 15 Nov 2011 00:36:17 +0100 Subject: [PATCH] Doc changes. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7b42651..81c4be4 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,12 @@ # rq — Simple job queues for Python -**rq** is an attempt at a lightweight Python job queue, using Redis as the -queue provider. +**rq** is a lightweight Python job queue, based on Redis. # Putting jobs on queues -To put work on queues, tag a Python function call as a job, like so: +To put jobs on queues, first declare a Python function call as a job, like so: @job('default') def slow_fib(n): @@ -23,9 +22,8 @@ You can still call the function synchronously: slow_fib(4) You can find an example implementation in the `examples/` directory. To run -it, open three terminal windows and run the following commands in them: +it, open two terminal windows and run the following commands in them: -1. `python example/run_worker.py` 1. `python example/run_worker.py` 1. `python example/run_example.py`