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

Fix after usage with skipped conditions (#2945)

* Introduces a new `SKIP_TO_COMPLETED` event used for loops where
.after() is registered on the looping condition step. We skip that
straight into completion and don't check for subscribers anymore since
the loop is completed.
* When transitioning to limbo for skipped conditions, we transition to
skipped state and run subscribers before moving to the final state if
there are subscribers on that stepId
This commit is contained in:
Tony Kovanen 2025-03-13 15:55:28 +02:00 • committed by GitHub
commit 44631b1e94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 75 additions and 4 deletions