ixti/sidekiq-throttled

Adjust dynamic throttling based on batch status

roykolak opened this issue · 0 comments

If a batch has been marked as invalid, I would like throw all threshold rules out the window and let the jobs in the batch finish as fast as possible according to the concurrency rules.

Is there a way to check if a batch is valid or not in a dynamic threshold limit or period? I tried calling valid_within_batch? inside the proc I was passing into limit and period, but that did not work.