huey, a little task queue
Project description
a lightweight alternative.
written in python
only dependency is the Python Redis client
supports:
multi-process, multi-thread or greenlet task execution models
schedule tasks to execute at a given time, or after a given delay
schedule recurring tasks, like a crontab
retry tasks that fail automatically
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()
To run the consumer with 4 worker processes:
$ huey_consumer.py my_app.huey -k process -w 4
Documentation
Project page
See source code and issue tracker on Github.
Huey is named in honor of my cat:
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
huey-1.2.0.tar.gz
(275.7 kB
view details)
File details
Details for the file huey-1.2.0.tar.gz.
File metadata
- Download URL: huey-1.2.0.tar.gz
- Upload date:
- Size: 275.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e92e4cab8492a233e18ed0fc92998a48aaf32334949427afd6723f228eecccf6
|
|
| MD5 |
a44a6f8a451e17a4ca4c3d6a48ea2ab9
|
|
| BLAKE2b-256 |
a59808a1c77efc6e17c89c96683d668e9f5f47eacb30b74bb8a70fce905ca07a
|