Cloudflare DevelopersCD
Cloudflare Developers4mo ago
2 replies
stephen

Workers API

Within a Workflow, can you run a Workflow Step in parallel?

For example: The AI SDK allows parallel execution of a step: https://developers.cloudflare.com/workflows/build/workers-api/#call-workflows-from-workers

And so does Mastra: https://mastra.ai/en/docs/workflows/control-flow#simultaneous-steps-with-parallel

It's not clear if Workflows have this feature.
Cloudflare Docs
This guide details the Workflows API within Cloudflare Workers, including methods, types, and usage examples.
Workers API
Control flow in Mastra workflows allows you to manage branching, merging, and conditions to construct workflows that meet your logic requirements.
Branching, Merging, Conditions | Workflows | Mastra Docs
Was this page helpful?