3 ms·
Thanks. What happens right now when the workflow fails mid-way? Do you ensure atomicity or durable execution?
by thoughtlede 3y ago
Thanks.
What happens right now when the workflow fails mid-way? Do you ensure atomicity or durable execution?
- samuelbrashears 3y agoWe 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 3y agoYeah. 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.
- samuelbrashears 3y agoGreat idea -- we're looking at showing workflow history and this is a good addition.