pub struct RunStatus {
pub state: RunState,
pub updated_at: DateTime<Utc>,
pub heartbeat_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
}Expand description
Mutable run status — small, atomically rewritten (status.json).
The heartbeat lets a reader distinguish a live run from a crashed
one without any protocol: state == Running with a stale
heartbeat_at means the process died.
Fields§
§state: RunStateCurrent lifecycle state.
updated_at: DateTime<Utc>When this status file was last rewritten, for any reason.
heartbeat_at: Option<DateTime<Utc>>Last liveness ping. Stale while state is
RunState::Running means the process died.
finished_at: Option<DateTime<Utc>>When the run reached a terminal state, None while running.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunStatus
impl<'de> Deserialize<'de> for RunStatus
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
Auto Trait Implementations§
impl Freeze for RunStatus
impl RefUnwindSafe for RunStatus
impl Send for RunStatus
impl Sync for RunStatus
impl Unpin for RunStatus
impl UnsafeUnpin for RunStatus
impl UnwindSafe for RunStatus
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