Closed KevinBerthier closed 6 years ago
default lock ttl is 15 minutes. Increase it to be bigger than your jobs are taking:
Sidekiq::Throttled::Registry.add(:big_parser, concurrency: { limit: 1, ttl: 1.hour.to_i })
hey Ixti, from what I noticed, even once the job is done, it will not pull in another job until the ttl is done. Is there a way to lock for either: job is done or 1 hour (whatever is shorter)?
@erated Are you sure you are referring to concurrency throttling? As what you describe is a behaviour of threshold throttling.
@ixti I found this after 2 days of googling and stuff. Please have it somewhere in readme. Thanks
This is vital information. Found it after noticing my production jobs were not respecting concurrency. +1 to add to the README.
@kjvarga totally open for PRs on improving documentation
A throttling strategy is set to concurrency 1
With multiples workers using this strategy
When I run many jobs the no-concurrency is maintained only for 15 min