Skip to content

Commit 4026402

Browse files
authored
Merge pull request #4 from planningcenter/bm/dont-retry-query-canceled
Fix: Dont retry on ActiveRecord::QueryCanceled
2 parents 1832b4f + da17cc3 commit 4026402

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1 (Jan 25, 2024)
2+
3+
- Fix: Do not retry on ActiveRecord::QueryCanceled errors
4+
15
## 1.0.0 (Aug 24, 2023)
26

37
- Feature: Add support for Rails 7

lib/activerecord/mysql/reconnect.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module Activerecord::Mysql::Reconnect
3232
]
3333

3434
DO_NOT_HANDLE_ERROR = [
35-
ActiveRecord::StatementTimeout
35+
ActiveRecord::StatementTimeout,
36+
ActiveRecord::QueryCanceled
3637
]
3738

3839
@@handle_r_error_messages = {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Activerecord
22
module Mysql
33
module Reconnect
4-
VERSION = '1.0.0'
4+
VERSION = '1.0.1'
55
end
66
end
77
end

0 commit comments

Comments
 (0)