#[non_exhaustive]pub enum OperatorRejection {
OptimisticConflict {
current: ExecutionVersion,
},
InvalidState {
status: BatchStatus,
},
InstanceCompleted,
InstanceAbandoned,
ExecutionAlreadyActive {
execution_id: JobExecutionId,
status: BatchStatus,
},
IncompatibleDefinition,
RestartWithoutPriorAttempt,
StartLimitExceeded,
UnresolvedRecoveryRequired,
ExecutionNotFound,
InstanceNotFound,
UnsupportedAction,
}Expand description
The typed reason one guard rejected an operator action.
A rejection is durable and audited. It carries no user error text, SQL, or credential.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OptimisticConflict
The supplied expected version lost its compare-and-swap.
Fields
current: ExecutionVersionThe version observed under lock.
InvalidState
The action is not legal from the observed status.
Fields
status: BatchStatusThe status observed under lock.
InstanceCompleted
The logical instance already completed.
InstanceAbandoned
The logical instance is permanently abandoned.
ExecutionAlreadyActive
Another attempt is active or requires explicit recovery.
Fields
execution_id: JobExecutionIdThe attempt preventing the action.
status: BatchStatusIts status observed under lock.
IncompatibleDefinition
The proposed definition cannot interpret the committed checkpoint.
RestartWithoutPriorAttempt
A restart was requested for an instance with no prior attempt.
StartLimitExceeded
The instance-wide start limit for a logical step is exhausted.
UnresolvedRecoveryRequired
Abandoning an ambiguous execution requires an applied recovery decision.
ExecutionNotFound
The targeted execution does not exist.
InstanceNotFound
The targeted logical instance does not exist.
UnsupportedAction
This build cannot apply the requested action.
OperatorAction is #[non_exhaustive], so a caller compiled against
a newer definition of it can name an action this build has no effect
for. Rejecting is the conservative arm: the request is audited and
nothing is applied.
Implementations§
Trait Implementations§
Source§impl Clone for OperatorRejection
impl Clone for OperatorRejection
Source§fn clone(&self) -> OperatorRejection
fn clone(&self) -> OperatorRejection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more