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(`Attempt ${ctx.attempt}`);});You can use the step context for improved logging & observability, progressive backoff, or conditional logic in your workflow definition.
Note that the current attempt number is 1-indexed. For more information on retry behavior, refer to Sleeping and Retrying.
Source: Cloudflare
Latest Posts
- (Updated) Action required: Update Teams Rooms app to maintain PowerPoint Live functionality [MC1332812]
![(Updated) Action required: Update Teams Rooms app to maintain PowerPoint Live functionality [MC1332812] 2 pexels eberhardgross 1287142](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft Entra ID SSPR will require registered authentication methods starting September 7, 2026 [MC1325414]
![(Updated) Microsoft Entra ID SSPR will require registered authentication methods starting September 7, 2026 [MC1325414] 3 pexels jenna hamra 248942 804416](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Agents, Workers – Agents SDK adds background sub-agents and a unified turn entry point

- Power Platform admin center – Advanced connector policies [MC1403390]
![Power Platform admin center – Advanced connector policies [MC1403390] 5 pexels googledeepmind 17485678](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![(Updated) Action required: Update Teams Rooms app to maintain PowerPoint Live functionality [MC1332812] 2 pexels eberhardgross 1287142](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-eberhardgross-1287142-150x150.webp)
![(Updated) Microsoft Entra ID SSPR will require registered authentication methods starting September 7, 2026 [MC1325414] 3 pexels jenna hamra 248942 804416](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-jenna-hamra-248942-804416-150x150.webp)

![Power Platform admin center – Advanced connector policies [MC1403390] 5 pexels googledeepmind 17485678](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-googledeepmind-17485678-150x150.webp)
