Instantly share code, notes, and snippets.

@calavera /b8ks-1.rb
Last active Jul 11, 2018

Embed
What would you like to do?
CircuitBreaker.for("builds") do |breaker|
breaker.happy do
send_message_to_queue(message)
end
breaker.sad do
keep_message_in_memory(message)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment