Skip to main content

huey, a little task queue

Project description

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

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

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()

named after my cat:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huey-0.4.1.tar.gz (691.1 kB view details)

Uploaded Source

File details

Details for the file huey-0.4.1.tar.gz.

File metadata

  • Download URL: huey-0.4.1.tar.gz
  • Upload date:
  • Size: 691.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for huey-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e50039eff8a2c14ed4f0e2eb4cb2a256dd9634d10dac72fcf59e3118d07e42de
MD5 aaefaf34d02544ab1ace6a501e0d7e37
BLAKE2b-256 f8e3c2d4292b89479c569fd14257415406348dda0d50804906f18dce430aa4dc

See more details on using hashes here.

Provenance

Supported by

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