enova / sidekiq-rate-limiter

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

New feature: Per server rate limit #5

Closed sentience closed 10 years ago

sentience commented 10 years ago

In some use cases, you may have a Sidekiq server process running on each of several hosts, and you wish to limit the rate that jobs are executed on each server, rather than across all servers. To do this, add :per_server => true to your :rate hash.

sentience commented 10 years ago

Tests are failing due to #4. Merge that fix, and this will pass too.

bwthomas commented 10 years ago

This pull request is obviated by #6. I'll evaluate the feature there.

Also, thanks for the collaboration :+1: