Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

`python manage.py rundramatiq` - no `--watch` command? #161

Open SHxKM opened 5 months ago

SHxKM commented 5 months ago

requirements.txt:

django-dramatiq[redis, watch]==0.11.6

When running from docker-compose, neither of the following works:

python manage.py rundramatiq --reload

python manage.py rundramatiq --watch .
SHxKM commented 5 months ago

I thought installing dramatiq as well would help, but still:

Running dramatiq: "dramatiq --path . --processes 8 --threads 8 --worker-shutdown-timeout 600000 --watch . django_dramatiq.....
worker-1    | usage: dramatiq [-h] [--processes PROCESSES] [--threads THREADS]
worker-1    |                 [--path [PATH ...]] [--queues [QUEUES ...]]
worker-1    |                 [--pid-file PID_FILE] [--log-file LOG_FILE] [--skip-logging]
worker-1    |                 [--use-spawn] [--fork-function FORKS]
worker-1    |                 [--worker-shutdown-timeout WORKER_SHUTDOWN_TIMEOUT]
worker-1    |                 [--version] [--verbose]
worker-1    |                 broker [module ...]
worker-1    | dramatiq: error: unrecognized arguments: --watch
OndrejIT commented 2 months ago

@SHxKM You must install extra package https://github.com/Bogdanp/dramatiq/blob/e48151e0e4bc94c27acb6828a20cda001daf6743/docs/source/installation.rst#extra-requirements pip install -U 'dramatiq[watch]'