Skip to main content

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 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

### 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

django-rq-wrapper-3.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

django_rq_wrapper-3.1-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-rq-wrapper-3.1.tar.gz.

File metadata

  • Download URL: django-rq-wrapper-3.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for django-rq-wrapper-3.1.tar.gz
Algorithm Hash digest
SHA256 28db01d4a9c7760e873351831c71ce2de03270f1f0bfeecd61f891054c3562e2
MD5 e6419b6c07419876a451df3dc21f8d27
BLAKE2b-256 be076dd50eeca3d14e7a94a48c94852e833ff1766212eb909972b891844f4758

See more details on using hashes here.

File details

Details for the file django_rq_wrapper-3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_rq_wrapper-3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for django_rq_wrapper-3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9163a2c36b587b2ffea149f09e537c7c12a843ac592cc73bb26afc051749d46f
MD5 100220f0fbddafe867c4c1d6f4cdfc4d
BLAKE2b-256 7c09609b46b3f82ecd839b424f8aa9904be36030200d3135a65aeb99e53544c4

See more details on using hashes here.

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