chore(): Add retry strategy to database connection (#12713)
RESOLVES FRMW-2978 **What** Add retry mechanism to database connection management to prevent failing when the server start faster than what makes the connection available
This commit is contained in:
1 parent
44d1d18689
commit
cbf3644eb7
9 files changed
+333
-45
No files matched your search
@@ -15,7 +15,7 @@ export async function initDb() {
|
||||
"@medusajs/framework"
|
||||
)
|
||||
|
||||
const pgConnection = pgConnectionLoader()
|
||||
const pgConnection = await pgConnectionLoader()
|
||||
await featureFlagsLoader()
|
||||
|
||||
return pgConnection
|
||||
|
||||
Reference in new issue
Block a user