fix(core-flows): lock draft order workflows (#13668)

I added a lock in all workflows of the draft order. I don't think there are drawbacks and it will make sure we don't run into concurrency issues in with draft orders. I don't see why we would not add this in the order workflows, let me know and I can add it too.

I also didn't see any workflow that is long enough to justify adding a timeout of more than 2 seconds, but let me know if you think otherwise, we can discuss adjustments :)

CLOSES-1228
This commit is contained in:
William Bouchard
2025-10-03 18:05:22 +00:00
committed by GitHub
parent 2d43a498cf
commit 8acfb88c2b
21 changed files with 216 additions and 26 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(core-flows): lock draft order workflows