Cloudflare Workflows allows you to configure specific retry logic for each step in your workflow execution. Now, you can access which retry attempt is currently executing for calls to step.do() : await step . do ( "my-step" , async ( ctx ) = { // ctx.attempt is 1 on first try, 2 on first retry, etc. console . log (...
Workflows, Workers - Workflow steps now expose retry attempt number via step context
Cloudflare Developer Platform Changelog · 2026-03-06
Related items
Workflows - Additional step context and ReadableStream support now available in Workflows step.do()
Workflows now provides additional context inside step.do() callbacks and supports returning ReadableStream to handle larger step outputs. Step context properties The step.do() callback receives a context object with new properties alongside attempt : step.name — The name passed to step.do() step.count — How many tim...
Workers AI - Workers AI larger context windows
We've updated the Workers AI text generation models to include context windows and limits definitions and changed our APIs to estimate and validate the number of tokens in the input prompt, not the number of characters. This update allows developers to use larger context windows when interacting with Workers AI mode...
Workers - Content type returned in Workers Assets for Javascript files is now `text/javascript`
JavaScript asset responses have been updated to use the text/javascript Content-Type header instead of application/javascript . While both MIME types are widely supported by browsers, the HTML Living Standard explicitly recommends text/javascript as the preferred type going forward. This change improves: Standards a...
Workers, Workflows - Workflows is now in open beta
Workflows is now in open beta, and available to any developer a free or paid Workers plan. Workflows allow you to build multi-step applications that can automatically retry, persist state and run for minutes, hours, days, or weeks. Workflows introduces a programming model that makes it easier to build reliable, long...
Workflows, Workers - Workflows is now Generally Available
Workflows is now Generally Available (or "GA"): in short, it's ready for production workloads. Alongside marking Workflows as GA, we've introduced a number of changes during the beta period, including: A new waitForEvent API that allows a Workflow to wait for an event to occur before continuing execution. Increased...
Workflows, Workers - Workflows step limit increased to 25,000 steps per instance
Each Workflow on Workers Paid now supports 10,000 steps by default, configurable up to 25,000 steps in your wrangler.jsonc file: { " workflows " : [ { " name " : "my-workflow" , " binding " : "MYWORKFLOW" , " classname " : "MyWorkflow" , " limits " : { " steps " : 25000 } } ] } Previously, each instance was limited...