A Django app for Periodiq.
Project description
django_periodiq
django_periodiq is a Django app that integrates with Periodiq.
Requirements
- django-dramatiq 0.10.0+
- Periodiq 0.12.1+
Installation
pip install django-dramatiq django-periodiq
Add django_periodiq
to installed apps before any of your custom
apps and after django_dramatiq
:
INSTALLED_APPS = [
"django_dramatiq",
"django_periodiq",
"myprojectapp1",
"myprojectapp2",
# etc...
]
Add periodiq.PeriodiqMiddleware
to DRAMATIQ_BROKER
middlewares:
DRAMATIQ_BROKER = {
"MIDDLEWARE": [
...
"periodiq.PeriodiqMiddleware",
],
}
To change PeriodiqMiddleware.skip_delay
add PERIODIQ_SKIP_DELAY
settings
Run dramatiq:
python manage.py rundramatiq
Run periodiq:
python manage.py runperiodiq
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
django_periodiq-0.2.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for django_periodiq-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb397e802c0595812f9d51504685fa6e70386c922032d9948c90df7f64b0f887 |
|
MD5 | d6f26b2a478a9104dd1ded69ddd6c026 |
|
BLAKE2b-256 | 9576af06b919cf8d1a5508a11708cfcf1baae40778cb324634fe8b2675f9381c |