pub struct RunContext {
pub run_id: String,
pub parent_run_id: Option<String>,
pub resume_count: u32,
pub actual_developer_runs: u32,
pub actual_reviewer_runs: u32,
}Expand description
Context for tracking pipeline execution lineage and state.
This tracks information about the current pipeline run that is separate from the configured parameters. It enables:
- Unique identification of each run (run_id)
- Tracking resume lineage (parent_run_id)
- Counting how many times a session has been resumed (resume_count)
- Tracking actual completed iterations vs configured iterations
Fields§
§run_id: StringUnique identifier for this run (UUID v4)
parent_run_id: Option<String>Parent run ID if this is a resumed session
resume_count: u32Number of times this session has been resumed
actual_developer_runs: u32Actual number of developer iterations that have completed
actual_reviewer_runs: u32Actual number of reviewer passes that have completed
Implementations§
Source§impl RunContext
impl RunContext
Sourcepub fn from_checkpoint(checkpoint: &PipelineCheckpoint) -> Self
pub fn from_checkpoint(checkpoint: &PipelineCheckpoint) -> Self
Create a RunContext from a checkpoint (for resume scenarios).
Sourcepub fn record_developer_iteration(&mut self)
pub fn record_developer_iteration(&mut self)
Record a completed developer iteration.
Sourcepub fn record_reviewer_pass(&mut self)
pub fn record_reviewer_pass(&mut self)
Record a completed reviewer pass.
Trait Implementations§
Source§impl Clone for RunContext
impl Clone for RunContext
Source§fn clone(&self) -> RunContext
fn clone(&self) -> RunContext
Returns a duplicate of the value. Read more
1.0.0 · 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 RunContext
impl Debug for RunContext
Source§impl Default for RunContext
impl Default for RunContext
Source§impl<'de> Deserialize<'de> for RunContext
impl<'de> Deserialize<'de> for RunContext
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 RunContext
impl RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnwindSafe for RunContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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