https://github.com/q0w/django-periodiq
A Django app that integrates with Periodiq.
https://github.com/q0w/django-periodiq
dramatiq periodiq
Last synced: 2 months ago
JSON representation
A Django app that integrates with Periodiq.
- Host: GitHub
- URL: https://github.com/q0w/django-periodiq
- Owner: q0w
- License: mit
- Created: 2021-08-01T00:49:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T17:28:28.000Z (3 months ago)
- Last Synced: 2025-03-31T18:37:29.654Z (3 months ago)
- Topics: dramatiq, periodiq
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django_periodiq
**django_periodiq** is a Django app that integrates with [Periodiq][periodiq].## Requirements
* [django-dramatiq][django-dramatiq] 0.11.0+
* [Periodiq][periodiq] 0.12.1+## Installation
pip install django-periodiq
Add `django_periodiq` to installed apps *before* any of your custom
apps and *after* `django_dramatiq`:
``` python
INSTALLED_APPS = [
"django_dramatiq",
"django_periodiq",
"myprojectapp1",
"myprojectapp2",
# etc...
]
```
Add `periodiq.PeriodiqMiddleware` to `DRAMATIQ_BROKER` middlewares:
``` python
DRAMATIQ_BROKER = {
"MIDDLEWARE": [
...
"periodiq.PeriodiqMiddleware",
],
}
```
To change `PeriodiqMiddleware.skip_delay` add `PERIODIQ_SKIP_DELAY` settingsRun dramatiq:
```shell
python manage.py rundramatiq
````
Run periodiq:
```shell
python manage.py runperiodiq
```[periodiq]: https://gitlab.com/bersace/periodiq
[django-dramatiq]: https://github.com/Bogdanp/django_dramatiq