Simple Scheduler for Dramatiq Task Queue
Project description
Simple Scheduler for Dramatiq Task Queue
dramatiq task queue is great but lake a scheduler. This project fills the gap.
Features
- Cron-like scheduling.
- Single process.
- Fast and simple implementation.
- Easy on ressources using SIGALRM.
- No dependency except dramatiq ones.
- CLI consistent with dramatiq.
Installation
periodiq is licensed under LGPL 3.0+.
$ pip install periodiq
Declare periodic tasks like this:
import dramatiq
from periodiq import PeriodicMiddleWare, cron
broker.add_middleware(PeriodicMiddleWare())
@dramatiq.actor(periodic=cron('0 * * * *))
def hourly():
# Do something each hour…
...
Then, run scheduler with:
$ periodiq -v my.broker.module
Support
If you need help or found a bug, mind opening a GitLab issue on the project. French and English spoken.
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
periodiq-0.10.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
periodiq-0.10.0-py3-none-any.whl
(12.4 kB
view hashes)
Close
Hashes for periodiq-0.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b6822303ca06837b5f371156eb5b6de50c1e9fd45885686d536990049e0b42 |
|
MD5 | 1dd7f56230de7f5b48e4a9dd832ccafe |
|
BLAKE2b-256 | 35f72cf1d5862e411e145a521d58dee61ba94388af172ab1edd6a920f206ec8f |