0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

fix(core): retry a failed abort terminal and take the resume marker first

If publishing the abort terminal for a canceled parked run failed, the
per-process reservation stayed set, so later refused approvals never retried
and an attached observer stayed open. The reservation is still taken before
the publish (concurrent refusals publish once) but is released when the
publish rejects, so the next refusal retries it.

resume() now takes the in-flight resume marker synchronously before its first
await again (#27365); the storage cancellation check runs after the marker and
releases it when it rejects the run.

Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
mastra-platform[bot] 2026-11-09 21:19:52 +00:00
commit 7a856a33a3
2 changed files with 68 additions and 11 deletions