sidekiq-throttled icon indicating copy to clipboard operation
sidekiq-throttled copied to clipboard

Adjust dynamic throttling based on batch status

Open roykolak opened this issue 2 years ago • 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.

roykolak avatar May 06 '22 20:05 roykolak