sisyphus

Lightweight task processing queue.


License
Apache-2.0
Install
pip install sisyphus==0.0.1.4

Documentation

sisyphus

lightweight celery replacement. Project needs love.

Installation

pip install sisyphus

From source

git clone https://github.com/mkorenkov/sisyphus.git
cd sisyphus
python setup.py install

Defining tasks

import time
from sisyphus.decorators import stone, stone2

@stone
def hello_world():
    print "Hello world"

@stone
def print_value(value):
    print value

@stone
def long_run():
    print "sleeping..."
    time.sleep(30)
    print "stop sleeping"

Scheduling tasks

hello_world().delay()
print_value(14).delay()
long_run().delay()
print_value(21).delay()

Running a worker

from sisyphus.master import Master

if __name__ == "__main__":
    m = Master()
    m.run()