Skip to content

Unnecessary rate limit backend warnings #787

@fledman

Description

@fledman

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:

If you are fine with the concept, but don't have time at the moment, I can put together a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions