Skip to content

Instantly share code, notes, and snippets.

@fladson
Last active August 31, 2021 07:47
Show Gist options
  • Save fladson/1fb066b691fc345e7a434c9edc944315 to your computer and use it in GitHub Desktop.
Save fladson/1fb066b691fc345e7a434c9edc944315 to your computer and use it in GitHub Desktop.
Clear/kill sidekiq limiters
# I didn't find a way to clear/kill all limiters via sidekiq API
# this will do it
Sidekiq::Limiter.redis do |conn|
conn.scan_each(:match => "lmtr-?-*", :count => 100) do |key|
conn.multi do
conn.del(key)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment