top | item 39792956

(no title)

thoughtlede | 1 year ago

Thanks.

What happens right now when the workflow fails mid-way? Do you ensure atomicity or durable execution?

discuss

order

samuelbrashears|1 year ago

We do a fixed number of retries, including redoing any AI arguments. We've thought about making it atomic/more durable -- it's tricky, given that most steps interact with external systems e.g. Google Sheets, and while not typically "destructive" (Google Sheets has version history), undo-ing is often difficult.

thoughtlede|1 year ago

Yeah. Rollbacks or reruns are hard when dealing with external systems. Actions need to be idempotent for reruns to work.

One thing you may focus on is making workflows more durable: Checkpointing and sending to users summaries of last checkpoints when things fail.

The last thing you want a non-tech user (your target customer) is to figure out what’s the state of a failed workflow.