Workflows, Workers - Stream Workflow instance events in your Worker or via the API with .subscribe()
Cloudflare Workflows changelog published Workflows, Workers - Stream Workflow instance events in your Worker or via the API with .subscribe(). You can now stream Workflow instance events via WorkflowInstance.subscribe() and the GET /subscribe API endpoint. Workers and HTTP clients can react to workflow and step events, including attempts, sleeps, waits, and…
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Cloudflare Workflows changelog published Workflows, Workers - Stream Workflow instance events in your Worker or via the API with .subscribe(). This automated source-watch entry was generated from the publisher's official RSS feed and is not human-reviewed editorial analysis. Source excerpt: You can now stream Workflow instance events via WorkflowInstance.subscribe() and the GET /subscribe API endpoint. Workers and HTTP clients can react to workflow and step events, including attempts, sleeps, waits, and rollbacks, without polling for instance status. A subscription first streams the entire event history of the Workflow instance. After streaming past events, the subscription waits for new events as the instance runs. You can use filter to receive only specific event types or cursor to start a subscription at a specific event. Use .subscribe() to update Workflow status in user-facing dashboards, send notifications when steps complete, or trigger follow-up work for specific events. const instance = await env. MY WORKFLOW . get ( "report-123" ); using subscription = await instance. subscribe (); while ( true ) { const { value , done } = await subscription. next (); if (done) {…
可执行摘要
Treat Workflows, Workers - Stream Workflow instance events in your Worker or via the API with .subscribe() as an official publication signal. Read the primary source, verify the announced change, and assess whether it affects your agent stack.
- Agent 实用度
- 80/100
- 可信度
- 90%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Read the original Cloudflare Workflows changelog article before relying on this summary.
- Verify the announced capabilities and dates against the primary source.
- Assess whether the change affects your agent stack or evaluation plan.