Django redis Push Pull models and management commands
Project description
Installation
$ pip install django-aiohttp-rq
settings.py
INSTALLED_APPS+=['django_aiohttp_rq']
# optional
AIOHTTP_RQ_BRIDGE_RESTART_INTERVAL=1 # 0.1 default
AIOHTTP_RQ_BRIDGE_SLEEP_INTERVAL=1 # 0.1 default
AIOHTTP_RQ_BRIDGE_QUERY="CALL schema.procedure()"
migrate
$ python manage.py migrate
Environment variables
aiohttp-rq env variables required
Variable | default |
---|---|
AIOHTTP_RQ_DIR |
None |
AIOHTTP_RQ_REQUEST_QUEUE |
aiohttp-rq-request |
AIOHTTP_RQ_RESPONSE_QUEUE |
aiohttp-rq-response |
AIOHTTP_RQ_REQUEST_EXCEPTION_QUEUE |
aiohttp-rq-request-exception |
Features
- based on aiohttp-rq
- admin interface
- management commands
- debug messages if
setting.DEBUG
enabled
Management commands
name | description |
---|---|
aiohttp_rq_bridge |
redis bridge worker |
aiohttp_rq_pull |
pull |
aiohttp_rq_push |
push |
Examples
$ python manage.py aiohttp_rq_bridge
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
File details
Details for the file django_aiohttp_rq-0.0.3.tar.gz
.
File metadata
- Download URL: django_aiohttp_rq-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1960c0295555e4208549c0cdb0a7260b5a18c3d3ca9330db1b6d81a4e38d0303 |
|
MD5 | 9aca4fc42b0b5e13e1e740b7d75d807e |
|
BLAKE2b-256 | 09ffc3023c46b8180d966cf6d35d3aa0f4ba1ca66834f9656f1edcb3ac44ccfd |