Closed bwthomas closed 10 years ago
Thanks for the comments, @bwthomas! I agree with your sentiments and will respond with some changes shortly.
Now that I’ve implemented in #7 support for using Proc
s to calculate option values dynamically, I’m wondering if this feature is an unnecessary specialisation of the more general ability to set 'name'
dynamically per host.
E.g. I could now impose a per-server-hostname limit as follows:
sidekiq_options 'queue' => 'my_queue',
'rate' => {
'limit' => 10,
'period' => 10,
'name' => ->{ Socket.gethostname } ,
}
What do you think? Abandon this feature and focus on #7?
I agree, I like the more general approach. I'm going to close this out, & let's focus on using callables.
Rebased on from master. See #5.