pub struct TaskErrorEvent {
pub id: Uuid,
pub account_task: TaskEvent,
pub error_msg: String,
pub timestamp: u64,
pub metadata: Map<String, Value>,
pub context: ExecutionMark,
pub run_id: Uuid,
pub prefix_request: Uuid,
}Expand description
Error task message model.
Records processing-time errors, including error details and execution context.
Fields§
§id: UuidUnique identifier.
account_task: TaskEventAssociated account task information.
error_msg: StringError message.
timestamp: u64Timestamp.
metadata: Map<String, Value>Metadata.
context: ExecutionMarkExecution context.
run_id: UuidRun identifier.
prefix_request: UuidPredecessor request identifier (points to predecessor Request.id).
Implementations§
Source§impl TaskErrorEvent
impl TaskErrorEvent
pub fn get_context(&self) -> &ExecutionMark
pub fn with_meta<T>(self, meta: T) -> Selfwhere
T: Serialize,
pub fn add_meta<T>(self, key: impl AsRef<str>, value: T) -> Selfwhere
T: Serialize,
pub fn with_context(self, ctx: ExecutionMark) -> Self
Trait Implementations§
Source§impl Clone for TaskErrorEvent
impl Clone for TaskErrorEvent
Source§fn clone(&self) -> TaskErrorEvent
fn clone(&self) -> TaskErrorEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskErrorEvent
impl Debug for TaskErrorEvent
Source§impl<'de> Deserialize<'de> for TaskErrorEvent
impl<'de> Deserialize<'de> for TaskErrorEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventProcessorTrait<TaskErrorEvent, Task> for TaskModelProcessor
impl EventProcessorTrait<TaskErrorEvent, Task> for TaskModelProcessor
fn pre_status(&self, input: &TaskErrorEvent) -> Option<EventEnvelope>
fn finish_status( &self, input: &TaskErrorEvent, output: &Task, ) -> Option<EventEnvelope>
fn working_status(&self, input: &TaskErrorEvent) -> Option<EventEnvelope>
fn error_status( &self, input: &TaskErrorEvent, err: &Error, ) -> Option<EventEnvelope>
fn retry_status( &self, input: &TaskErrorEvent, retry_policy: &RetryPolicy, ) -> Option<EventEnvelope>
Source§impl From<&Response> for TaskErrorEvent
impl From<&Response> for TaskErrorEvent
Source§impl From<&TaskErrorEvent> for ParserTaskModelEvent
impl From<&TaskErrorEvent> for ParserTaskModelEvent
Source§fn from(value: &TaskErrorEvent) -> Self
fn from(value: &TaskErrorEvent) -> Self
Converts to this type from the input type.
Source§impl From<TaskErrorEvent> for UnifiedTaskInput
impl From<TaskErrorEvent> for UnifiedTaskInput
Source§fn from(value: TaskErrorEvent) -> Self
fn from(value: TaskErrorEvent) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TaskErrorEvent
impl Identifiable for TaskErrorEvent
Source§impl Offloadable for TaskErrorEvent
impl Offloadable for TaskErrorEvent
fn should_offload(&self, _threshold: usize) -> bool
fn offload<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_storage: &'life1 Arc<dyn BlobStorage>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reload<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_storage: &'life1 Arc<dyn BlobStorage>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Prioritizable for TaskErrorEvent
impl Prioritizable for TaskErrorEvent
fn get_priority(&self) -> Priority
Source§impl ProcessorTrait<TaskErrorEvent, Task> for TaskModelProcessor
impl ProcessorTrait<TaskErrorEvent, Task> for TaskModelProcessor
Source§fn process<'life0, 'async_trait>(
&'life0 self,
input: TaskErrorEvent,
context: ProcessorContext,
) -> Pin<Box<dyn Future<Output = ProcessorResult<Task>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 self,
input: TaskErrorEvent,
context: ProcessorContext,
) -> Pin<Box<dyn Future<Output = ProcessorResult<Task>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Processes input data.
Source§fn pre_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 TaskErrorEvent,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn pre_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 TaskErrorEvent,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Optional pre-processing hook.
Source§fn post_process<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_output: &'life2 Output,
_context: &'life3 ProcessorContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn post_process<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_output: &'life2 Output,
_context: &'life3 ProcessorContext,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Optional post-processing hook.
Source§fn handle_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_error: Error,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = ProcessorResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_error: Error,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = ProcessorResult<Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Optional error handling hook.
Source§fn should_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn should_process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 Input,
_context: &'life2 ProcessorContext,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Optional predicate to decide whether this input should be processed.
Auto Trait Implementations§
impl Freeze for TaskErrorEvent
impl RefUnwindSafe for TaskErrorEvent
impl Send for TaskErrorEvent
impl Sync for TaskErrorEvent
impl Unpin for TaskErrorEvent
impl UnsafeUnpin for TaskErrorEvent
impl UnwindSafe for TaskErrorEvent
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more