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 tostep.do()step.count— How many times a step with that name has been invoked in this instance (1-indexed)- Useful when running the same step in a loop.
config— The resolved step configuration, includingtimeoutandretrieswith defaults applied
type ResolvedStepConfig = { retries: { limit: number; delay: WorkflowDelayDuration | number; backoff?: "constant" | "linear" | "exponential"; }; timeout: WorkflowTimeoutDuration | number;};
type WorkflowStepContext = { step: { name: string; count: number; }; attempt: number; config: ResolvedStepConfig;};ReadableStream support in step.do()
Steps can now return a ReadableStream directly. Although non-stream step outputs are limited to 1 MiB, streamed outputs support much larger payloads.
const largePayload = await step.do("fetch-large-file", async () => { const object = await env.MY_BUCKET.get("large-file.bin"); return object.body;});Note that streamed outputs are still considered part of the Workflow instance storage limit.
Source: Cloudflare
Latest Posts
- (Updated) New flexibility and choice for sharing organizational data across Microsoft 365 and Viva apps [MC1316232]
![(Updated) New flexibility and choice for sharing organizational data across Microsoft 365 and Viva apps [MC1316232] 2 pexels pixabay 269063](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- AWS announces AWS Blocks, an open-source framework for composing application backends on AWS (Preview)

- (Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532]
![(Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532] 4 pexels apasaric 6062555](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Updates available for Microsoft 365 Apps for Current Channel [MC1393672]
![Updates available for Microsoft 365 Apps for Current Channel [MC1393672] 5 pexels evgeny tchebotarev 1058775 2541310](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![(Updated) New flexibility and choice for sharing organizational data across Microsoft 365 and Viva apps [MC1316232] 2 pexels pixabay 269063](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-pixabay-269063-150x150.webp)

![(Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532] 4 pexels apasaric 6062555](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-apasaric-6062555-150x150.webp)
![Updates available for Microsoft 365 Apps for Current Channel [MC1393672] 5 pexels evgeny tchebotarev 1058775 2541310](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-evgeny-tchebotarev-1058775-2541310-150x150.webp)
