Add an extra message to detect Postgres deadlocks.
This commit is contained in:
parent
2b9f430908
commit
606e5ed267
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,8 @@ module DeadlockRetry
|
|||
module ClassMethods
|
||||
DEADLOCK_ERROR_MESSAGES = [
|
||||
"Deadlock found when trying to get lock",
|
||||
"Lock wait timeout exceeded"
|
||||
"Lock wait timeout exceeded",
|
||||
"deadlock detected"
|
||||
]
|
||||
|
||||
MAXIMUM_RETRIES_ON_DEADLOCK = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue