mirror of
https://github.com/outline/outline.git
synced 2025-12-25 13:00:52 -06:00
chore: Add exponential backoff / retry for deadlocks (#9671)
* chore: Add exponential backoff / retry for deadlocks * feedback
This commit is contained in:
@@ -75,6 +75,12 @@ export function createDatabaseInstance(
|
||||
acquire: 30000,
|
||||
idle: 10000,
|
||||
},
|
||||
retry: {
|
||||
match: [/deadlock/i],
|
||||
max: 3,
|
||||
backoffBase: 200,
|
||||
backoffExponent: 1.5,
|
||||
},
|
||||
schema,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user