Last active
August 31, 2021 07:47
-
-
Save fladson/1fb066b691fc345e7a434c9edc944315 to your computer and use it in GitHub Desktop.
Clear/kill sidekiq limiters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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