pub enum TaskErrorCode {
Unspecified,
Timeout,
InvalidInput,
ComponentFailed,
Cancelled,
Unreachable,
ComponentNotFound,
ResourceUnavailable,
ExpressionFailure,
OrchestratorError,
WorkerError,
}Expand description
Categorizes the type of error that occurred during task execution.
Each variant maps to a specific retry policy:
- Always retried (transport):
Unreachable,Timeout - Retried with onError policy:
ComponentFailed,ResourceUnavailable - Never retried: all others
Variants§
Unspecified
Default value; should not be used explicitly.
Timeout
The task exceeded its execution deadline or heartbeat timeout.
InvalidInput
The component rejected its input.
ComponentFailed
The component executed but returned a business-logic failure.
Cancelled
The task was explicitly cancelled by the orchestrator.
Unreachable
The worker or component could not be reached.
ComponentNotFound
The requested component does not exist on the worker.
A resource required by the component was not available.
ExpressionFailure
The orchestrator failed to resolve a value expression.
OrchestratorError
Catch-all for unexpected orchestrator errors.
WorkerError
Catch-all for unexpected worker/SDK errors.
Implementations§
Source§impl TaskErrorCode
impl TaskErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
Returns the proto-style name (e.g. "TASK_ERROR_CODE_TIMEOUT").
Sourcepub fn proto_number(&self) -> i32
pub fn proto_number(&self) -> i32
Returns the numeric proto value.
Trait Implementations§
Source§impl Clone for TaskErrorCode
impl Clone for TaskErrorCode
Source§fn clone(&self) -> TaskErrorCode
fn clone(&self) -> TaskErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskErrorCode
impl Debug for TaskErrorCode
Source§impl<'de> Deserialize<'de> for TaskErrorCode
impl<'de> Deserialize<'de> for TaskErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for TaskErrorCode
impl Display for TaskErrorCode
Source§impl From<TaskErrorCode> for i32
impl From<TaskErrorCode> for i32
Source§fn from(code: TaskErrorCode) -> i32
fn from(code: TaskErrorCode) -> i32
Source§impl Hash for TaskErrorCode
impl Hash for TaskErrorCode
Source§impl JsonSchema for TaskErrorCode
impl JsonSchema for TaskErrorCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TaskErrorCode
impl PartialEq for TaskErrorCode
Source§impl Serialize for TaskErrorCode
impl Serialize for TaskErrorCode
Source§impl TryFrom<i32> for TaskErrorCode
impl TryFrom<i32> for TaskErrorCode
impl Copy for TaskErrorCode
impl Eq for TaskErrorCode
impl StructuralPartialEq for TaskErrorCode
Auto Trait Implementations§
impl Freeze for TaskErrorCode
impl RefUnwindSafe for TaskErrorCode
impl Send for TaskErrorCode
impl Sync for TaskErrorCode
impl Unpin for TaskErrorCode
impl UnsafeUnpin for TaskErrorCode
impl UnwindSafe for TaskErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.