Hi Mike, generally a system cannot reliably watch itself. I prefer to leave that monitoring to the application so you'd need to implement something yourself. You can use the Sidekiq API to check for retry set size and script some response, but the possible inputs and logic are so app-specific; I don't think I could provide anything useful in Sidekiq itself. Sidekiq Pro has an API to pause a given queue, you could pause all queues like:
Sidekiq::Queue.all.each(&:pause!)
Let us know if you figure out something reliable and useful.
Mike