Skip to content

Commit 5c6c285

Browse files
chore(modules-sdk): db migration concurrency as envvar (#13965)
## Summary **What** — What changes are introduced in this PR? *Please provide answer here* **Why** — Why are these changes relevant or necessary? *Please provide answer here* **How** — How have these changes been implemented? *Please provide answer here* **Testing** — How have these changes been tested, or how can the reviewer test the feature? *Please provide answer here* --- ## Examples Provide examples or code snippets that demonstrate how this feature works, or how it can be used in practice. This helps with documentation and ensures maintainers can quickly understand and verify the change. ```ts // Example usage ``` --- ## Checklist Please ensure the following before requesting a review: - [ ] I have added a **changeset** for this PR - Every non-breaking change should be marked as a **patch** - To add a changeset, run `yarn changeset` and follow the prompts - [ ] The changes are covered by relevant **tests** - [ ] I have verified the code works as intended locally - [ ] I have linked the related issue(s) if applicable --- ## Additional Context Add any additional context, related issues, or references that might help the reviewer understand this PR.
1 parent 9d9d039 commit 5c6c285

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/tame-candles-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/modules-sdk": patch
3+
---
4+
5+
chore(modules-sdk): db migration concurrency as env var

packages/core/modules-sdk/src/medusa-app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,10 @@ async function MedusaApp_({
558558
}
559559
}
560560

561+
const concurrency = parseInt(process.env.DB_MIGRATION_CONCURRENCY ?? "1")
561562
await executeWithConcurrency(
562563
moduleResolutions.map((a) => () => run(a)),
563-
8 // parallel migrations
564+
concurrency
564565
)
565566
}
566567

0 commit comments

Comments
 (0)