enova / sidekiq-rate-limiter

Redis-backed, per-worker rate limits for job processing.
http://rubygems.org/gems/sidekiq-rate-limiter
MIT License
192 stars 43 forks source link

Indicate when limit reached? #19

Open mahemoff opened 8 years ago

mahemoff commented 8 years ago

Hi, is there any way to register a handler for rate limit reached? e.g. so clients could log a warning/error or clear the queue.

wagenet commented 7 years ago

I looked at the source and didn't see anything, I agree that this would be useful.

bwillis commented 6 years ago

+1 here, we had to monkey patch the limit class. Seems like #24 offers an ability to extend and adding logging also.