Skip to content

Commit

Permalink
Merge pull request #4 from planningcenter/bm/dont-retry-query-canceled
Browse files Browse the repository at this point in the history
Fix: Dont retry on ActiveRecord::QueryCanceled
  • Loading branch information
mcfadden authored Jan 29, 2024
2 parents 1832b4f + da17cc3 commit 4026402
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1 (Jan 25, 2024)

- Fix: Do not retry on ActiveRecord::QueryCanceled errors

## 1.0.0 (Aug 24, 2023)

- Feature: Add support for Rails 7
Expand Down
3 changes: 2 additions & 1 deletion lib/activerecord/mysql/reconnect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ module Activerecord::Mysql::Reconnect
]

DO_NOT_HANDLE_ERROR = [
ActiveRecord::StatementTimeout
ActiveRecord::StatementTimeout,
ActiveRecord::QueryCanceled
]

@@handle_r_error_messages = {
Expand Down
2 changes: 1 addition & 1 deletion lib/activerecord/mysql/reconnect/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Activerecord
module Mysql
module Reconnect
VERSION = '1.0.0'
VERSION = '1.0.1'
end
end
end

0 comments on commit 4026402

Please sign in to comment.