#[non_exhaustive]pub enum Transition {
Show 24 variants
RequestApproval,
Approve,
Deny,
PreconditionRejected,
StartAttempt,
Succeeded,
FailedDefinitively,
ScheduleRetry,
OutcomeUnknown,
LeaseExpired,
StartVerification,
VerificationConfirmed,
VerificationNotApplied,
VerificationConflict,
Escalate,
ResolvedApplied,
ResolvedNotApplied,
ResolvedRetry,
StartCompensation,
ScheduleCompensationRetry,
StartCompensationRetry,
CompensationSucceeded,
CompensationFailed,
ResolvedCompensated,
}Expand description
Something that happens to an effect and may change its status.
Each variant is also an audit event; see Transition::as_str.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RequestApproval
Policy requires approval before the first attempt.
Approve
Approval was granted.
Deny
Approval was refused.
PreconditionRejected
A precondition permanently refused the effect.
StartAttempt
An attempt begins. Persisted before the action is invoked.
Succeeded
The action succeeded and no verification is configured.
FailedDefinitively
The action failed and the effect definitely did not apply, with no retry left or allowed.
ScheduleRetry
Another attempt is scheduled, because the effect definitely did not apply or re-executing it is known to be safe.
OutcomeUnknown
The attempt ended without a definitive answer.
LeaseExpired
The lease holder disappeared mid-attempt (recovery).
StartVerification
Verification begins, after a success or to reconcile an unknown outcome.
VerificationConfirmed
Verification found the effect applied.
VerificationNotApplied
Verification found, authoritatively, that the effect did not apply, and it will not be retried.
VerificationConflict
Verification found remote state that contradicts the effect.
Escalate
The runtime gave up resolving an unknown outcome on its own.
ResolvedApplied
An operator confirmed the effect applied.
ResolvedNotApplied
An operator confirmed the effect did not apply.
ResolvedRetry
An operator asserted it is safe to run the effect again, or to try its failed compensation again.
StartCompensation
Undoing a committed effect begins. Persisted before the first compensation attempt.
ScheduleCompensationRetry
Another compensation attempt is scheduled, after a failed attempt.
StartCompensationRetry
Another compensation attempt begins: a scheduled retry, or a rerun of an attempt a crash interrupted. Persisted before it runs.
CompensationSucceeded
The compensation succeeded.
CompensationFailed
The compensation failed for good.
ResolvedCompensated
An operator undid the effect by hand.