Skip to main content

FlowError

Enum FlowError 

Source
#[non_exhaustive]
pub enum FlowError {
Show 28 variants RunNotFound(String), RunTerminal(String), InvalidRunId(String), ContinueAsNewCycle(String), ContinueAsNewLimitExceeded(usize), ChildWorkflowCycle(String), ChildWorkflowDepthExceeded(usize), RunConflict { run_id: String, reason: String, }, InvalidRuntimeBuildId(String), InvalidWorkflowPatchId(String), RuntimeBuildUnavailable { run_id: String, required_build_id: Option<RuntimeBuildId>, current_build_id: Option<RuntimeBuildId>, }, RuntimeBuildRouteNotFound { required_build_id: Option<RuntimeBuildId>, }, NonDeterministic { run_id: String, reason: String, }, EventConflict { run_id: String, expected_sequence: u64, actual_sequence: u64, }, HookTokenNotFound(String), LeaseLost(String), HookTokenConflict { token: String, existing_run_id: String, existing_hook_id: String, }, HookConflict { run_id: String, hook_id: String, reason: String, }, SignalConflict { run_id: String, signal_id: String, reason: String, }, InvalidWorkflow(String), InvalidTransition(String), InvalidWorkerConfiguration(String), TaskManagement(String), Store(String), Runtime(String), Serialization(Error), Io(Error), ReplayLimitExceeded(usize),
}
Expand description

Errors surfaced by the workflow engine and runtime adapters.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

RunNotFound(String)

A requested workflow run does not exist.

§

RunTerminal(String)

An operation attempted to append work to a terminal run.

§

InvalidRunId(String)

A run identifier violates the storage-safe identifier contract.

§

ContinueAsNewCycle(String)

A continue-as-new chain contains a repeated run.

§

ContinueAsNewLimitExceeded(usize)

A continue-as-new chain exceeds the configured traversal bound.

§

ChildWorkflowCycle(String)

Parent and child ownership links contain a cycle.

§

ChildWorkflowDepthExceeded(usize)

A child workflow request exceeds the configured nesting bound.

§

RunConflict

An idempotent run start disagrees with the existing run definition.

Fields

§run_id: String

Existing run identifier.

§reason: String

Description of the conflicting immutable input.

§

InvalidRuntimeBuildId(String)

A runtime build identity is empty or malformed.

§

InvalidWorkflowPatchId(String)

A workflow patch identity is empty, malformed, or too long.

§

RuntimeBuildUnavailable

No configured runtime can replay the run’s pinned build.

Fields

§run_id: String

Run that requires replay admission.

§required_build_id: Option<RuntimeBuildId>

Runtime build pinned by the run, if any.

§current_build_id: Option<RuntimeBuildId>

Runtime build configured on the attempted executor, if any.

§

RuntimeBuildRouteNotFound

No task queue route is registered for a required runtime build.

Fields

§required_build_id: Option<RuntimeBuildId>

Runtime build required by the task, if pinned.

§

NonDeterministic

Runtime replay emitted a command that conflicts with durable history.

Fields

§run_id: String

Run whose replay diverged.

§reason: String

Description of the durable command mismatch.

§

EventConflict

An optimistic event append used a stale expected sequence.

Fields

§run_id: String

Run whose history changed concurrently.

§expected_sequence: u64

Last sequence assumed by the caller.

§actual_sequence: u64

Last sequence currently stored.

§

HookTokenNotFound(String)

The original token remains available for programmatic routing, while Display and Debug deliberately redact it.

§

LeaseLost(String)

A queue lease was lost before its task could be acknowledged.

§

HookTokenConflict

The conflicting token remains available for programmatic handling, while Display and Debug deliberately redact it.

Fields

§token: String

Conflicting bearer token, retained only for programmatic recovery.

§existing_run_id: String

Run that already owns the token.

§existing_hook_id: String

Hook that already owns the token.

§

HookConflict

A hook retry conflicts with its durable identity or resolution.

Fields

§run_id: String

Run that owns the hook.

§hook_id: String

Replay-stable hook identity.

§reason: String

Description of the conflicting request.

§

SignalConflict

A signal retry conflicts with its durable identity or payload.

Fields

§run_id: String

Run targeted by the signal.

§signal_id: String

Caller-owned signal identity.

§reason: String

Description of the conflicting delivery.

§

InvalidWorkflow(String)

A workflow definition violates a static invariant.

§

InvalidTransition(String)

An event or command violates the current durable state.

§

InvalidWorkerConfiguration(String)

Worker settings cannot provide the requested execution guarantees.

§

TaskManagement(String)

An external task manager rejected or failed an operation.

§

Store(String)

A durable event store rejected or failed an operation.

§

Runtime(String)

A workflow or step runtime failed outside application commands.

§

Serialization(Error)

JSON serialization or deserialization failed.

§

Io(Error)

Filesystem, process, or stream I/O failed.

§

ReplayLimitExceeded(usize)

Replay emitted more commands than the configured safety bound.

Trait Implementations§

Source§

impl Debug for FlowError

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FlowError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for FlowError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for FlowError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for FlowError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SqlComparable<Option<T>> for T

Source§

impl<T> SqlComparable<T> for T

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more