pub struct OfflineRun {
pub run_id: String,
pub status: RunStatus,
pub error: Option<String>,
pub started_at: i64,
pub updated_at: i64,
pub last_progress_at: Option<i64>,
pub empty_output: bool,
pub abandoned: bool,
}Expand description
One run that exists on disk but which the daemon is not currently hosting.
Deliberately not a RunListEntry. That type describes a live agent, and
there is no honest way to turn a persisted RunStatus back into an
AgentStatus: Starting and CompleteInteractive have no counterpart, and
Idle/Active both collapse to Running on the way out. Inventing a live
status for a run nobody is running is the exact kind of convenient lie that
made issue #202 hard to diagnose, so the two sources stay in two arrays, each
honest about where it came from.
Fields§
§run_id: StringThe run id.
status: RunStatusThe status recorded on disk, verbatim.
error: Option<String>The recorded error, for a run that ended badly.
started_at: i64Unix seconds when the run started.
updated_at: i64Unix seconds of the last snapshot, heartbeat included. Not progress.
last_progress_at: Option<i64>Unix seconds when the run last actually moved, when it is known.
empty_output: boolWhether the run finished having modified nothing, when it could have.
abandoned: boolDisk says this run is still going, and the daemon is not hosting it, and
it has not moved in a long time. See runstate::looks_abandoned.
Never true when the daemon did not answer: an unreachable daemon looks exactly like every run dying at once.
Trait Implementations§
Source§impl Clone for OfflineRun
impl Clone for OfflineRun
Source§fn clone(&self) -> OfflineRun
fn clone(&self) -> OfflineRun
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OfflineRun
impl Debug for OfflineRun
Source§impl<'de> Deserialize<'de> for OfflineRun
impl<'de> Deserialize<'de> for OfflineRun
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>,
Source§impl PartialEq for OfflineRun
impl PartialEq for OfflineRun
Source§impl Serialize for OfflineRun
impl Serialize for OfflineRun
impl StructuralPartialEq for OfflineRun
Auto Trait Implementations§
impl Freeze for OfflineRun
impl RefUnwindSafe for OfflineRun
impl Send for OfflineRun
impl Sync for OfflineRun
impl Unpin for OfflineRun
impl UnsafeUnpin for OfflineRun
impl UnwindSafe for OfflineRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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>
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>
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