django_periodiq is a Django app that integrates with Periodiq.
- django-dramatiq 0.11.0+
- Periodiq 0.12.1+
pip install 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