Workflows, Workers - Create Workflow instance batches by count or list
Cloudflare Workflows added support for batch instance creation up to 100 instances per call using createBatch() , configurable by count or an instances list.
Why this signal matters
Cloudflare Workflows has updated the createBatch() method to accept an options object enabling the creation of up to 100 Workflow instances in a single call. The response provides a list of created instances along with explanations for any instances that failed creation. Instances can be created in bulk using a count property with shared parameters and generated IDs, or configured individually using an instances array for custom IDs and parameters. Support in local development and TypeScript type generation requires Wrangler version 4.148.0 or later.
Actionable summary
Cloudflare Workflows now supports createBatch() accepting up to 100 instances per invocation. It supports creating multiple instances sharing identical options via a count property or custom individual options/IDs via an instances array. Results return created instances alongside failure reasons. Wrangler version 4.148.0 or later is required for local types.
- Agent usefulness
- 80/100
- Confidence
- 90%
- Canonical data
- JSON + Markdown
What builders should check
- Upgrade to Wrangler 4.148.0 or later to get updated types via wrangler types and enable local development support.
- Refactor single-instance workflow creation logic to use createBatch() when spawning up to 100 instances.