M
Mastra•6d ago
Cava99

Resuming a suspended workflow in a parallel branch while the other branch is still running

Hi. I have a situation where there are two branches, one that i can suspend and resume in a loop (branch B), and the other that ends right after completing its only step (branch A). I attached a screen to make it easier to understand. I am encountering the following problem: - if branch B suspends before branch A finishes, and I resume it before branch A finishes, if branch A ends while branch B is running the second iteration, such iteration is stopped/lost - if branch B suspends before branch A finishes, I wait for branch A to finish, then I can resume branch B without problems. This is a problem because I need to ask a bunch of questions in a loop while a much heavier data extraction task is being run in parallel. Is this a bug or am I using the parallel feature in the wrong way?
No description
3 Replies
Mastra Triager
Mastra Triager•6d ago
šŸ“ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10746 šŸ” If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly. šŸ™ Thank you for helping us improve Mastra!
rase-
rase-•5d ago
Hey, Thanks for reporting! This is already on our radar https://github.com/mastra-ai/mastra/issues/9430 It's high up on our priority list and we will pick this up soon!
GitHub
[FEATURE] Resume suspended steps even if workflow is still running ...
Hook into currently active run, and resume steps Continue execution in already active run
Cava99
Cava99OP•5d ago
Amazing, thanks!

Did you find this page helpful?

Resuming a suspended workflow in a parallel branch while the other branch is still running - Mastra