Skip to main content

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

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

django_aiohttp_rq-0.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page