Skip to content

Instantly share code, notes, and snippets.

@astupka
Last active October 13, 2015 12:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astupka/4197496 to your computer and use it in GitHub Desktop.
Save astupka/4197496 to your computer and use it in GitHub Desktop.
Delete queue using bunny
require 'bunny'
def delete_queue(queue_name)
Bunny.run(MessagingHelper.config.amqp) do |bunny|
queue = bunny.queue(queue_name, {:durable => true})
queue.delete
end
end
@chmurph2
Copy link

Inkcredible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment