pub struct JobFailedEvent {
pub job_id: String,
pub error: String,
pub trace_id: Option<String>,
pub worker_id: Option<String>,
pub attempt_count: Option<u32>,
pub status: Option<String>,
pub failure_class: Option<String>,
pub next_retry_at: Option<String>,
pub trace_ctx: Option<TraceCtx>,
pub attempt_id: Option<AttemptId>,
pub trial_id: Option<TrialId>,
}Expand description
Emitted when a job fails.
Fields§
§job_id: String§error: String§trace_id: Option<String>👎Deprecated:
Use trace_ctx instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use trace_ctx instead.
Removal condition: removed when all event consumers migrate to TraceCtx.
worker_id: Option<String>§attempt_count: Option<u32>👎Deprecated:
Use attempt_id/trial_id instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use attempt_id / trial_id instead.
Removal condition: removed when all event consumers migrate to AttemptId/TrialId.
status: Option<String>§failure_class: Option<String>§next_retry_at: Option<String>§trace_ctx: Option<TraceCtx>Canonical trace context (replaces trace_id).
attempt_id: Option<AttemptId>Canonical attempt identity — one per re-enqueue.
trial_id: Option<TrialId>Canonical trial identity — one per concrete execution.
Trait Implementations§
Source§impl Clone for JobFailedEvent
impl Clone for JobFailedEvent
Source§fn clone(&self) -> JobFailedEvent
fn clone(&self) -> JobFailedEvent
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 JobFailedEvent
impl Debug for JobFailedEvent
Source§impl<'de> Deserialize<'de> for JobFailedEvent
impl<'de> Deserialize<'de> for JobFailedEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobFailedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobFailedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JobFailedEvent
impl Serialize for JobFailedEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for JobFailedEvent
impl RefUnwindSafe for JobFailedEvent
impl Send for JobFailedEvent
impl Sync for JobFailedEvent
impl Unpin for JobFailedEvent
impl UnsafeUnpin for JobFailedEvent
impl UnwindSafe for JobFailedEvent
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