pub struct JobRow {
pub id: i64,
pub job_type: String,
pub payload: String,
pub queue: String,
pub attempts: u32,
pub max_retries: u32,
pub idempotency_key: Option<String>,
pub tenant_id: Option<i64>,
pub available_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
}Expand description
A row read from the jobs table during a claim operation.
Fields§
§id: i64Primary key.
job_type: StringFully-qualified type name of the job (used to route to the correct handler).
payload: StringJSON-serialized job data.
queue: StringName of the queue this job belongs to.
attempts: u32Number of execution attempts so far.
max_retries: u32Maximum attempts before the job is parked as failed.
idempotency_key: Option<String>Optional deduplication key.
tenant_id: Option<i64>Optional tenant scope.
available_at: DateTime<Utc>Earliest time the job may be claimed.
created_at: DateTime<Utc>Insertion timestamp.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobRow
impl RefUnwindSafe for JobRow
impl Send for JobRow
impl Sync for JobRow
impl Unpin for JobRow
impl UnsafeUnpin for JobRow
impl UnwindSafe for JobRow
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> 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