JobStatus

Struct JobStatus 

Source
pub struct JobStatus {
Show 18 fields pub id: Uuid, pub job_type: String, pub state: JobState, pub priority: i32, pub weight: u16, pub orig_run_at: OffsetDateTime, pub run_at: Option<OffsetDateTime>, pub payload: Vec<u8>, pub current_try: Option<i32>, pub max_retries: i32, pub backoff_multiplier: f64, pub backoff_randomization: f64, pub backoff_initial_interval: Duration, pub added_at: OffsetDateTime, pub started_at: Option<OffsetDateTime>, pub finished_at: Option<OffsetDateTime>, pub expires_at: Option<OffsetDateTime>, pub run_info: SmallVec<[RunInfo<Box<RawValue>>; 4]>,
}
Expand description

Status information about a job.

Fields§

§id: Uuid

The job’s ID.

§job_type: String

The type of a job

§state: JobState

If the job is waiting, running, or finished

§priority: i32

Higher priority jobs will be run first.

§weight: u16

Higher weight indicates a job counts more against a worker’s concurrency.

§orig_run_at: OffsetDateTime

The original run_at time, before any retries.

§run_at: Option<OffsetDateTime>

The current run_at time, if the job is pending.

§payload: Vec<u8>

The job’s payload

§current_try: Option<i32>

The current try count, if the job is running or pending.

§max_retries: i32

The limit on the number of retries.

§backoff_multiplier: f64

The multiplier used when calculating the next retry time. See Retries.

§backoff_randomization: f64

The random factor used when calculating the next retry time. See Retries.

§backoff_initial_interval: Duration

The initial delay used when calculating the next retry time. See Retries.

§added_at: OffsetDateTime

When the job was added to the queue.

§started_at: Option<OffsetDateTime>

When the job’s last run started.

§finished_at: Option<OffsetDateTime>

When the job finished.

§expires_at: Option<OffsetDateTime>

If currently running, when the job will time out.

§run_info: SmallVec<[RunInfo<Box<RawValue>>; 4]>

Information about each run of the job.

Trait Implementations§

Source§

impl Debug for JobStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,