Module: ActiveRecord::Retry
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_record/retry.rb,
lib/active_record/retry/rails.rb,
lib/active_record/retry/version.rb
Defined Under Namespace
Modules: ClassMethods Classes: Railtie
Constant Summary collapse
- DEFAULT_RETRIES =
[1, 2, 4].freeze
- DEFAULT_RETRY_ERRORS =
{ # MySQL errors /Deadlock found when trying to get lock/ => :retry, /Lock wait timeout exceeded/ => :retry, /Lost connection to MySQL server during query/ => [:sleep, :reconnect, :retry], /MySQL server has gone away/ => [:sleep, :reconnect, :retry], /Query execution was interrupted/ => :retry, /The MySQL server is running with the --read-only option so it cannot execute this statement/ => [:sleep, :reconnect, :retry] }.freeze
- VERSION =
"1.0.0"