A distributed task runner
Project description
Kuyruk is a simple and easy way of distributing tasks to run on other servers. It uses RabbitMQ message broker for routing tasks.
How to install?
$ pip install kuyruk
How to run tests?
$ git clone git://github.com/cenkalti/kuyruk.git
$ cd kuyruk
$ pip install -r kuyruk/test/requirements.txt
$ nosetests
How to define tasks?
Instantiate a Kuyruk object somewhere. Then just put a kuyruk.task decorator on top of your function that you want to run in background. After decorating, when you call the function it will send the task to default queue instead of invoking it. Since Kuyruk does not support a result backend yet you should not be using the return value of the function.
from kuyruk import Kuyruk
kuyruk = Kuyruk()
@kuyruk.task
def echo(message):
print message
How to run the worker?
Running the binary kuyruk is enough for processing the tasks in the default queue.
$ kuyruk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Kuyruk-0.5.0.tar.gz
(10.7 kB
view hashes)