Created
June 14, 2020 09:05
-
-
Save kirillshevch/9885c75a3ab992e956f73869cc062dde 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
# Will retry all exceptions | |
Retriable.with_context(:aws) do | |
# aws_call | |
end | |
# Will retry Mysql::DeadlockException | |
Retriable.with_context(:mysql) do | |
# write_to_table | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment