mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(core): persist parked-run aborts on stores without concurrent updates
Stores that report no concurrent-update support (LanceDB, among others) may not implement updateWorkflowState at all, so aborting a parked durable run threw and the run stayed resumable. Those stores now get the canceled status by rewriting the run's snapshot (status checked first, guarded write where the store honors it); the atomic expectedStatus update is kept for stores that support it. Adds a LanceDB regression: two peers share a real Lance store, one aborts the parked run, the other's approval is refused and the tool never runs. Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
d1a201f19e
commit
635c8837e3
2 changed files with 145 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue