Skip to main content

CompletedRecord

Struct CompletedRecord 

Source
pub struct CompletedRecord {
    pub task: TaskId,
    pub source: RunSource,
    pub state: RunState,
    pub exit_status: Option<ExitStatus>,
    pub stdout_hash: [u8; 32],
    pub stderr_hash: [u8; 32],
    pub materialised_outputs: Vec<CanonicalPath>,
}
Expand description

Run-record fields produced by one run_task invocation: the observation of a task that the scheduler admitted into the lookup-then-spawn pipeline and that reached a run classification (EXEC-009).

Carries enough information for a scheduler layer to feed the per-TaskId predecessor_streams map that haz_cache_key::build_cache_key consumes: stdout_hash and stderr_hash are always present, whether the run was a cache hit (sourced from the manifest’s recorded hashes per CACHE-011) or a fresh run (computed from the captured byte buffers under the cache’s active HashAlgo).

A scheduler-level cascade decision produces RunOutcome::Skipped instead (EXEC-010 / EXEC-011); run_task itself never produces a Skipped because skipped tasks never enter the pipeline.

Fields§

§task: TaskId

The task this record describes.

§source: RunSource

Whether the success came from a cache hit or a fresh run.

§state: RunState

Terminal classification per EXEC-009.

§exit_status: Option<ExitStatus>

Process exit status for a fresh run, None for a cache hit (no process ran).

§stdout_hash: [u8; 32]

Hash of the run’s captured stdout under the cache’s HashAlgo. For RunSource::CacheHit this is read from the manifest; for RunSource::FreshRun it is computed from the captured byte buffer.

§stderr_hash: [u8; 32]

Hash of the run’s captured stderr under the cache’s HashAlgo.

§materialised_outputs: Vec<CanonicalPath>

Workspace-absolute paths the task materialised on disk.

Populated only for RunState::Succeeded; empty for RunState::Failed and RunState::Cancelled. The source is the executor’s output-resolution pass for a fresh run and haz_cache::Manifest::outputs for a cache hit.

Consumed by the scheduler’s runtime DAG validation pass (EXEC-019 runtime cycle detection and EXEC-020 runtime output-overlap detection) to derive runtime producer- matching edges and to populate the output-claim tracker.

Trait Implementations§

Source§

impl Clone for CompletedRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompletedRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CompletedRecord

Source§

impl PartialEq for CompletedRecord

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CompletedRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V