fix(orchestration): Prevent workf. cancellation to execute while rescheduling (#12903)

**What**
Currently, when cancelling async workflows, the step will get rescheduled while the current worker try to continue the execution leading to concurrency failure on compensation. This pr prevent the current worker from executing while an async step gets rescheduled

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2025-07-16 14:44:09 +00:00
committed by GitHub
co-authored by Carlos R. L. Rodrigues
parent eb83954f23
commit c5d609d09c
9 changed files with 305 additions and 63 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/test-utils": patch
"@medusajs/orchestration": patch
---
fix(orchestration): Prevent workf. cancellation to execute while rescheduling