ljdawn / huey

a little multi-threaded task queue for python

Home Page:http://huey.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

huey - a little task queue

http://media.charlesleifer.com/blog/photos/huey-logo.png

a lightweight alternative.

  • written in python
  • no deps outside the standard lib, except Redis (or you can roll your own backend)
  • support for Django

supports:

  • multi-threaded task execution
  • scheduled execution at a given time
  • periodic execution, like a crontab
  • retrying tasks that fail
  • task result storage

http://i.imgur.com/2EpRs.jpg

Huey's API

from huey import RedisHuey, crontab

huey = RedisHuey('my-app', host='redis.myapp.com')

@huey.task()
def add_numbers(a, b):
    return a + b

@huey.periodic_task(crontab(minute='0', hour='3'))
def nightly_backup():
    sync_all_data()

Documentation

See Huey documentation.

Project page

See source code and issue tracker on Github.

named after my cat:

http://media.charlesleifer.com/blog/photos/thumbnails/IMG_20130402_154858_650x650.jpg

About

a little multi-threaded task queue for python

http://huey.readthedocs.org/

License:MIT License


Languages

Language:Python 90.3%Language:Makefile 4.6%Language:Shell 4.4%Language:CSS 0.8%