Last active
July 11, 2018 17:21
-
-
Save calavera/e8fcbabe9ce73f92433e9a20f7548c54 to your computer and use it in GitHub Desktop.
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
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