MastraM
Mastra•2mo ago•
14 replies
devamaz

This workflow run was not suspended

I am using the
await workflow.createRun({ runId: "existing-run-id" })
trying to resume an existing workflow using the code below.

const transferWorkflow = mastra.getWorkflow("transferWorkflow");
const workflowRun = await transferWorkflow.createRunAsync({ runId: originalRunId });

// Resume the workflow from the suspended step
await workflowRun.resume({
   step: "request-pin", 
   resumeData: {
     pin: data.pin,
     flowCompleted: true,
   },
});

Also I can see the snapshot runId in the
mastra_workflow_snapshot
table with
status: "suspend"
but I am getting error workflow run was not suspended. @_roamin_
Was this page helpful?