Last active
August 29, 2015 14:11
-
-
Save MatthewRDodds/06e1de1c2854272b173f to your computer and use it in GitHub Desktop.
Clear all named queues
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
require 'sidekiq' | |
Sidekiq.configure_server do |config| | |
config.redis = { url: ENV['REDIS_URL'] } | |
end | |
Sidekiq.redis do |conn| | |
conn.smembers('queues').each do |q| | |
# Sidekiq::Queue.new(q).clear | |
puts q | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment