pub struct JobExecution {
pub job_id: Uuid,
pub attempt_id: Uuid,
pub attempt_no: i32,
pub worker_id: String,
pub lease_expires_at: DateTime<Utc>,
pub started_at: DateTime<Utc>,
}Expand description
Runtime execution claim tying a job, durable attempt, worker, and lease together.
JobExecution is the in-flight view of work. The durable record of the handler run is
JobAttempt; the durable record of the work item is Job.
Fields§
§job_id: Uuid§attempt_id: Uuid§attempt_no: i32§worker_id: String§lease_expires_at: DateTime<Utc>§started_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for JobExecution
impl Clone for JobExecution
Source§fn clone(&self) -> JobExecution
fn clone(&self) -> JobExecution
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 JobExecution
impl Debug for JobExecution
Source§impl<'de> Deserialize<'de> for JobExecution
impl<'de> Deserialize<'de> for JobExecution
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
impl Eq for JobExecution
Source§impl PartialEq for JobExecution
impl PartialEq for JobExecution
Source§impl Serialize for JobExecution
impl Serialize for JobExecution
impl StructuralPartialEq for JobExecution
Auto Trait Implementations§
impl Freeze for JobExecution
impl RefUnwindSafe for JobExecution
impl Send for JobExecution
impl Sync for JobExecution
impl Unpin for JobExecution
impl UnsafeUnpin for JobExecution
impl UnwindSafe for JobExecution
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