Bogdanp/django_dramatiq

Add silent option for startup

Aperta

#120 aperta il 17 mar 2022

 (3 commenti) (0 reazioni) (0 assegnatari)Python (86 fork)github user discovery
enhancementgood first issue

Metriche repository

Star
 (384 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi,

Currently the rundramatiq management prints each tasks module it finds on startup:

* Discovered tasks module foo.tasks
* Discovered tasks module bar.tasks

This output can be quite long if you have many tasks modules.

It would be nice if this was possible to silence by adding a -v0 option to the command.

Relevant code: https://github.com/Bogdanp/django_dramatiq/blob/master/django_dramatiq/management/commands/rundramatiq.py#L176

Guida contributor