Workflows, Workers - Call Workflows declared in exports through ctx.exports
Cloudflare Workers can now invoke Workflows declared in their exports configuration directly using ctx.exports , removing the requirement for a separate workflows binding.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Cloudflare has introduced direct access to Workflows defined within the same Worker via the execution context. Previously, triggering a Workflow required configuring an explicit workflows binding in the Worker's Wrangler configuration. With this update, any Workflow declared in the exports field can be accessed directly on ctx.exports keyed by its class name (e.g., ctx.exports.MyWorkflow.create({...}) ). The invocation interface mirrors the standard Workflow binding API.
可执行摘要
Cloudflare updated Workers and Workflows: Workers can now directly trigger self-declared Workflows via ctx.exports. instead of requiring a workflows binding. The exported instance maintains the standard Workflow binding API (such as .create() ).
- Agent 实用度
- 80/100
- 可信度
- 90%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Optionally refactor existing Worker code to call local Workflows via ctx.exports. instead of configuring separate workflows bindings in Wrangler.