Django management command to run multiple rq workers in one command and autoreload.
Project description
# django_rq_wrapper
Django management command for multiple rq workers in one command and autoreload.
—
This project builds off of [Django RQ](https://github.com/ui/django-rq). Instead of using the command python manage.py rqworker high default low, you can now run python manage.py rqworkers high default low.
### Installation
pip install django-rq-wrapper
Add django_rq_wrapper to your installed apps. Use the management command rqworkers.
### Added command options:
If you need to run multiple workers, you can pass in the --workers flag with the number of workers you want to spawn. If you don’t pass in this flag, the number of workers will default to the environment variable RQ_CONCURRENCY, or 1 if that is not set:
python manage.py rqworkers --workers 5
If you would like to have your workers autoreload the same way django’s runserver autoreloads, use the --autoreload flag:
python manage.py rqworkers --autoreload
rqworkers automatically detects and connects to all RQ_QUEUES in your settings file if no queue is specified.
### Note for Heroku
Add the environment variable RQ_CONCURRENCY to your config with the number of workers appropriate for (your dyno type)[https://devcenter.heroku.com/articles/optimizing-dyno-usage#python].
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
Built Distribution
Hashes for django_rq_wrapper-3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8b68e7013b07999facf4a5173323af6947610d152f210ba8c0479f107d6b1a |
|
MD5 | 270f58b81f692dd57d800d3a29e72538 |
|
BLAKE2b-256 | b0a3f6ced6028bc61a30e23b310d0a6ea1c0250e3236c97b67c01a2fa6a167db |