onAppendFailure

abstract fun onAppendFailure(compensation: suspend () -> Unit)

Registers compensation to run when this attempt's events are surely not appended.

An act it undoes is keyed on this attempt alone: a Wow call sent with requestId = attemptKey(), a third-party call with attemptKey as its idempotency key. A call keyed on the command, as a Wow client keys a call it sends from a decide function by default, is the same request in the next attempt and in a caller's retry, and its target would answer that one with the commit this compensation undid.