mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(core): decide the pre-step cancel re-check per step at dispatch
The previous rule re-checked storage only for steps that waited on the control subscription and the first step after it was ready. A step whose event passed the dispatch guard while the subscription was still pending, but reached the check after another step had flipped the state, skipped the re-check even though an abort published in that window was never delivered. The dispatcher now records, before its state load, whether a ready control subscription for the current pubsub existed, and the step re-checks storage whenever it did not. From that point every abort is either delivered or recorded in missedControlAborts, so the steady state still adds no reads. Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
673eaf4a51
commit
7845d2be32
2 changed files with 160 additions and 109 deletions
Loading…
Add table
Add a link
Reference in a new issue