pub enum UntypedJobEvent {
Started {
job: JobRow,
},
WaitingForCallback {
job: JobRow,
},
Completed {
job: JobRow,
duration: Duration,
},
Retried {
job: JobRow,
error: String,
attempt: i16,
next_run_at: DateTime<Utc>,
},
Exhausted {
job: JobRow,
error: String,
attempt: i16,
},
Cancelled {
job: JobRow,
reason: String,
},
Rescued {
job: JobRow,
reason: RescueReason,
},
}Expand description
Untyped lifecycle event keyed only by job kind.
Variants§
Started
Job execution started after the claim committed.
WaitingForCallback
Job parked waiting for an external callback.
Completed
Job completed successfully.
Retried
Job failed but will be retried later.
Exhausted
Job exhausted its retry budget and moved to failed.
Cancelled
Job was cancelled by the handler.
Rescued
Job was rescued by maintenance. See JobEvent::Rescued.
Implementations§
Trait Implementations§
Source§impl Clone for UntypedJobEvent
impl Clone for UntypedJobEvent
Source§fn clone(&self) -> UntypedJobEvent
fn clone(&self) -> UntypedJobEvent
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 moreAuto Trait Implementations§
impl Freeze for UntypedJobEvent
impl RefUnwindSafe for UntypedJobEvent
impl Send for UntypedJobEvent
impl Sync for UntypedJobEvent
impl Unpin for UntypedJobEvent
impl UnsafeUnpin for UntypedJobEvent
impl UnwindSafe for UntypedJobEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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