dramatiq
dramatiq copied to clipboard
Unnecessary rate limit backend warnings
Assuming you only intend to use one of the two rate limit backends, loading it causes an import warning for the other one:
from dramatiq.rate_limits.backends import RedisBackend
ImportWarning: MemcachedBackend is not available. Run `pip install dramatiq[memcached]` to add support for that backend.
This is noisy/annoying. Ideally the approach for the result backends could be duplicated here:
- raised in #421
- addressed in #506
If you are fine with the concept, but don't have time at the moment, I can put together a PR.