Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Capture the database system is in recovery mode error
Browse files Browse the repository at this point in the history
This allows to retry queries which experience: the database system is in recovery mode
  • Loading branch information
shayonj committed Feb 6, 2024
1 parent e20b054 commit 697c289
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rails_pg_adapter/patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module Patch
"is not currently accepting connections",
"too many connections",
"Connection refused",
"the database system is in recovery mode"
].freeze
CONNECTION_ERROR_RE = /#{CONNECTION_ERROR.map { |w| Regexp.escape(w) }.join("|")}/.freeze

Expand Down

0 comments on commit 697c289

Please sign in to comment.