mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(core): skip a nested step body when an ancestor's cancel aborted it
The pre-step check returned early only when the step's own run was canceled. When it found a canceled ancestor instead, the child's controller was aborted but not cancel-handled, so the body ran with an already-aborted signal and a body waiting for the abort event ran to completion. The body is now skipped with a canceled result, and the existing post-step branch publishes the child's workflow.cancel so it settles canceled. Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
13b89c3a1f
commit
434d531a38
2 changed files with 46 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue