Browse Source

add better description of flow of jobs through queues

pull/1/head
Brett Langdon 11 years ago
parent
commit
7cbf4cf7f9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      README.md

+ 4
- 0
README.md View File

@ -38,6 +38,10 @@ manager = Manager('__main__.target')
### Queues
There are a few different queues that are used. The job queues are just redis lists, manager/worker lists are sets and jobs are hashes.
A worker picks up a job from either `all:jobs`, `<manager>:jobs` or `<worker>:jobs`, pulls the corresponding `job:<job_id>` key and
processes it with the provided `target`, after processing it will then remove the `job:<job_id>` key as well as the job id from
the `<worker>:jobs` queue.
* `all:managers` - a set of all managers
* `all:jobs` - a queue that all workers can pull jobs from, the values are just the job ids
* `job:<job_id>` - a hash of the job data


Loading…
Cancel
Save