Tracking Work Completed Before a Failure
When an operation consists of several effects, failure can leave some already completed. Record which steps actually happened before choosing recovery.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two outputs
A job saves a complete report, then fails while producing an optional thumbnail. The report may still be useful. Two written pieces can be required to appear together under another contract. Function postconditions distinguish those cases.
Test the middle state
Force the optional step to report an ordinary failure, and inspect what was retained. A structured result can say which outputs are available without pretending the full request succeeded.[1]