2 Commits (834a79814e5cedcdb28f2f03e706bea3cfeaf0bb)

Author SHA1 Message Date
Vincent Driessen 834a79814e Rename task -> job.
Just a gift from a non-mainframe guy to a mainframe guy.  Love is all
about giving ;)
13 years ago
Vincent Driessen a5a8925608 Add an actual awesome worker structure.
To put messages on queues, use this:

    @job('normal')
    def foo(x, y):
        return x + y

    foo.delay(4, 5)

To run workers, start any number of these:

    $ python runworker.py high normal low

You can give arbitrary queue names, they are not limited to these
priority-based names.  They just serve as a useful example.
13 years ago