Instantly share code, notes, and snippets.

Embed
What would you like to do?
CircuitBreaker.for("b8ks") do |breaker|
breaker.happy do
send_message_to_b8ks(message)
end
breaker.sad do
FEATURES.disable!("b8ks")
retry_message_in_queue(message)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment