Created
July 11, 2018 17:23
-
-
Save calavera/1244e5d06214b8dee8a4bf5edf2970df to your computer and use it in GitHub Desktop.
This file contains hidden or 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("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