Skip to content

timdaman/huey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huey - a little task queue

image

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

image

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:

image

About

a little multi-threaded task queue for python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%