pub struct Checkpoint {Show 20 fields
pub schema_version: u32,
pub run_id: String,
pub step: u32,
pub state: StateSnapshot,
pub frontier: Frontier,
pub loop_counters: BTreeMap<String, u32>,
pub cost_usd: f64,
pub elapsed_ms: u64,
pub deadlines: BTreeMap<String, i64>,
pub resume_on: BTreeMap<String, String>,
pub wait_timeouts: BTreeMap<String, i64>,
pub graph: GraphRef,
pub drone_id: String,
pub trigger: Value,
pub run_cap_usd: Option<f64>,
pub outputs: BTreeMap<String, Value>,
pub bits: BTreeMap<String, (bool, bool)>,
pub history: BTreeMap<String, Vec<Value>>,
pub position: Position,
pub fork: Option<Fork>,
}Fields§
§schema_version: u32§run_id: String§step: u320 for the first checkpoint, then one more each time.
state: StateSnapshot§frontier: Frontier§loop_counters: BTreeMap<String, u32>Iterations used per loop guard, by node id.
cost_usd: f64§elapsed_ms: u64§deadlines: BTreeMap<String, i64>Wake-up times (ms epoch) of waiting nodes, by node id.
resume_on: BTreeMap<String, String>The event key each waiting node resumes on, by node id.
wait_timeouts: BTreeMap<String, i64>When a waiting node runs out of its own timeout_seconds (ms epoch), by node
id: kept so a restart does not give the wait its whole time again.
graph: GraphRef§drone_id: StringThe drone the run belongs to.
trigger: ValueWhat started the run ({{trigger.*}}); Null when nothing did. Never changes inside a run.
run_cap_usd: Option<f64>The run’s dollar cap, from the job that started it. Never changes inside a run.
outputs: BTreeMap<String, Value>The latest output of each block that ran ({{block.path}}), with its
history when a loop ran it again.
bits: BTreeMap<String, (bool, bool)>Each block’s output bits (tainted, derived). A restore never clears one.
history: BTreeMap<String, Vec<Value>>What each block that a loop ran again has said before, newest last (at
most 50): what {{block.history}} reads. Saved as it is, because it
cannot be told apart from the outputs.
position: Position§fork: Option<Fork>Set on a run that replays an earlier one (replay); absent on any other.
Trait Implementations§
Source§impl Clone for Checkpoint
impl Clone for Checkpoint
Source§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
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 Checkpoint
impl Debug for Checkpoint
Source§impl<'de> Deserialize<'de> for Checkpoint
impl<'de> Deserialize<'de> for Checkpoint
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 Checkpoint
impl PartialEq for Checkpoint
Source§impl Serialize for Checkpoint
impl Serialize for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§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>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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