Paul Scanlon
By Paul Scanlon

Introducing Temporal Support for Mastra Workflows

Your Mastra workflows can now run on Temporal. The new Temporal integration gives you retries, scheduling, durable state, and execution that survives worker restarts.

Workflow code stays identical. Under the hood, createWorkflow() becomes a Temporal workflow and createStep() becomes a Temporal activity.

Reach for Temporal when your workflows call external APIs, stretch over hours or days, or have to outlive a worker restart. You can self-host it or use the hosted version.

Running Mastra workflows on Temporal consists of three parts: create a Temporal client instance that binds Mastra’s createWorkflow and createStep to a Temporal task queue, then create a worker process that polls the Temporal task queue and runs your workflows.

Hey!

Leave a reaction and let me know how I'm doing.

  • 0
  • 0
  • 0
  • 0
  • 0
Powered byNeon
Close