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.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
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.
可执行摘要
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 实用度
- 80/100
- 可信度
- 90%
- 机器格式
- JSON + Markdown
开发者应核对什么
- 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.