Last active
June 14, 2020 08:55
-
-
Save kirillshevch/9edc9e9afc133302d69db382e832f2ec 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
Retriable.configure do |c| | |
c.contexts[:aws] = { | |
tries: 3, | |
on: [Aws::Errors::ServiceError, Errno::ECONNRESET] | |
} | |
c.contexts[:mysql] = { | |
tries: 10, | |
on: Mysql::DeadlockException | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment