mirror of https://github.com/peter4431/rq.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
|
14 years ago | |
|---|---|---|
| __init__.py | 14 years ago | |
| daemon.py | 14 years ago | |
| worker.py | 14 years ago | |