chore: Add exponential backoff / retry for deadlocks (#9671)

* chore: Add exponential backoff / retry for deadlocks

* feedback
This commit is contained in:
Tom Moor
2025-07-18 20:19:18 -04:00
committed by GitHub
parent e6683b84da
commit 41df837435

View File

@@ -75,6 +75,12 @@ export function createDatabaseInstance(
acquire: 30000,
idle: 10000,
},
retry: {
match: [/deadlock/i],
max: 3,
backoffBase: 200,
backoffExponent: 1.5,
},
schema,
};