Possible to restart completed workflow from specific step?
Hi I am just wondering if its possible to restart a workflow that has already finished (without suspending) from a specific step?
My use case is I have a worfklow that is a pipeline with each step building upon the output of the previuos step. Sometimes the initial 4 steps produce great outputs, but the last 2 might be unsatisfactory for whatever reason, and it would be nice to be able to restart the workflow from the last two steps rather than running the entire thing again.
I tried just calling resume workflow with the specific step but it crashses the server with the error "This workflow run was not suspended".
Is there any other way I could get this to work? Maybe a work around where I retrospectively set the workflow to suspended or something?
Thanks for your advice.
3 Replies
Hi @Zef ! Unfortuantely, that's not currently possible. Checking with the team for a workaround, but this might just be a new feature request.
I confirm that it is actually on our roadmap, possibly this month!
Hey @Romain amazing that would be great, it would make debugging long workflows way easier while developing too!
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/8950
GitHub
[DISCORD:1428397173149532270] Possible to restart completed workflo...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1428397173149532270 Hi I am just wondering if its possible to restart a workflow that has already finished...