Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
Last active June 14, 2020 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillshevch/9edc9e9afc133302d69db382e832f2ec to your computer and use it in GitHub Desktop.
Save kirillshevch/9edc9e9afc133302d69db382e832f2ec to your computer and use it in GitHub Desktop.
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