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
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 high default low --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 high default low --autoreload True
### 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-1.0.macosx-10.11-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55bb72fa2397a8e763fa6b70c0fde820c3f8c9254e07c32ad1e19968d88c052 |
|
MD5 | ae4d4e9a9a281ea8a4961f3ffedc55f1 |
|
BLAKE2b-256 | af72383f05d43149760adf65d99d887c83242f71e79b0fd5fe7d43569a0614ae |