Bogdanp / django_dramatiq

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

rate limiter uses DRAMATIQ_RESULT_BACKEND options instead of its own options #69

Closed LucidDan closed 4 years ago

LucidDan commented 4 years ago

When adding a backend with DRAMATIQ_RATE_LIMITER_BACKEND, the app attempts to retrieve the rate limiter parameters from DRAMATIQ_RESULT_BACKEND["BACKEND_OPTIONS"].

This will either result in failure if DRAMATIQ_RESULT_BACKEND is not defined, or unexpected behaviour by using the result backend configuration instead of the rate limiter configuration.