Skip to main content

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.

https://travis-ci.org/cenkalti/kuyruk.png

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.9.11.tar.gz (21.0 kB view details)

Uploaded Source

File details

Details for the file Kuyruk-0.9.11.tar.gz.

File metadata

  • Download URL: Kuyruk-0.9.11.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Kuyruk-0.9.11.tar.gz
Algorithm Hash digest
SHA256 36ddab8ab1b6c5b0c6b84993ee6943b22c180500886764617208d73012cc6518
MD5 99d17626466d76eea367cf1ac7b92b9b
BLAKE2b-256 0fdb77d6c1175b269f408bceee865f0f363d18c8aa003634a20566f80394d341

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page