Multiple throttle options
apetrov88 opened this issue · 3 comments
apetrov88 commented
Is it possible to set multiple throttle option like:
5 per 1 minute
100 per 1 hour
1000 per 1 day
All of them for the same worker.
ixti commented
You should be able to do something like:
sidekiq_throttled(
threshold: [
{ limit: 5, period: 5.minutes, key_suffix: "minutely" },
{ limit: 100, period: 1.hour, key_suffix: "hourly" },
{ limit: 1000, period: 1.day, key_suffix: "daily" },
]
)
apetrov88 commented
Does not seem to work for me. Can you confirm the settings above are correctly?
danishsatkut commented
@apetrov88 What's your sidekiq and sidekiq-throttled version?