All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Workflows - Rollback support now available in Workflows

29d ago

Source

CloudflareWorkflows - Rollback support now available in Workflowscloudflare.com
Snippet from the RSS feed
Workflows now supports saga-style rollbacks, allowing you to add compensating logic to each step.do() in case of downstream failures. If the instance fails, the rollback handlers will execute in reverse step-start order. This is useful for multi-step operations that touch external systems, such as inventory reservations, payment authorization, ticket creation, or infrastructure provisioning. Instead of writing all cleanup logic in a top-level catch , you can keep each compensating action next to the step it undoes. Rollback handlers support their own retry and timeout configuration, and Workflows now exposes rollback outcomes in instance status responses. Workflows analytics also emits rollback lifecycle events, making it easier to distinguish a forward execution failure from a rollback failure when debugging production workflows. JavaScript await step . do ( "provision resource" , async () => { const resource = await provisionResource () ; return { resourceId : resource . id }; }, { rollback : async ({ output }) => { const { resourceId } = output ; await deleteResource ( resourceId ) ; }, rollbackConfig : { retries : { limit : 3 , delay : "15 seconds" , backoff : "linear" }, timeout : "2 minutes" , }, }, ) ; TypeScript await step . do ( "provision resource" , async () => { const resource = await provisionResource () ; return { resourceId : resource . id }; }, { rollback : async ({ output }) => { const { resourceId } = output as { resourceId : string }; await deleteResource ( resourceId ) ; }, rollbackConfig : { retries : { limit : 3 , delay : "15 seconds" , backoff : "linear" }, timeout : "2 minutes" , }, }, ) ; Refer to rollback options to learn more.

You might also wanna read

Workflow SDK: Adding Durability and Reliability to TypeScript Functions

The article introduces Workflow SDK, a tool that adds durability, reliability, and observability to asynchronous JavaScript/TypeScript funct

useworkflow.dev·8mo ago

Postgres-Backed Durable Workflow Execution: An Alternative to External Orchestration Systems

This article explains the concept of durable workflow execution using Postgres as the backing database, as implemented by the DBOS system. I

dbos.dev·1mo ago

Postgres-Backed Durable Workflow Execution: An Alternative to External Orchestration Systems

This article explains the concept of durable workflow execution using Postgres as the backing database, as implemented by the DBOS system. I

dbos.dev·1mo ago

Technical Comparison: n8n vs Windmill vs Temporal for Self-Hosted Workflow Automation

This technical analysis compares three workflow automation platforms - n8n, Windmill, and Temporal - specifically for self-hosted deployment

blog.arcbjorn.com·8mo ago

Why Workflow State Should Live in the Same Database as Your Application Data

The article argues that workflow systems should not just use Postgres as a backend, but should actually co-locate workflow state inside the

dbos.dev·2d ago

Why Workflow State Should Live in the Same Database as Your Application Data

The article argues that workflow systems should not just use Postgres as a backend, but should actually co-locate workflow state inside the

dbos.dev·2d ago

Implementing Event Sourcing Architecture in Go: From Theory to Production

This article provides a comprehensive guide to implementing event sourcing in Go, covering the core concepts of append-only architecture, CQ

skoredin.pro·7mo ago

Flowripple: No-Code Workflow Automation Platform for SaaS Applications

Flowripple is a no-code workflow automation platform that enables SaaS users to trigger and manage workflows from their applications. The pl

Product Hunt·3mo ago

Comments

Sign in to join the conversation.

No comments yet. Be the first.