How to install Kuyruk
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install kuyruk
Lastest release
Kuyruk is a simple and easy way of distributing tasks to run on servers.
It uses RabbitMQ as message broker and depends on Pika which is a pure-Python RabbitMQ client library.
How to install?
Kuyruk is available on PyPI.
How to run tests?
Normally you don't need this but it is easy. kuyruk/test directory contains files of both unit and integration tests. Make sure that RabbitMQ is running before running tests. Tests also run on Travis CI automatically on push.
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 running the function. Since Kuyruk does not support a result backend yet you should not be using the return value of the function.
How to run the worker?
Running the worker command with no parameters is enough for processing the tasks in the default queue.
Where is the documentation?
Here it is: http://kuyruk.readthedocs.org