dramatiq icon indicating copy to clipboard operation
dramatiq copied to clipboard

Unnecessary rate limit backend warnings

Open fledman opened this issue 6 months ago • 0 comments

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.

fledman avatar Oct 20 '25 22:10 fledman