Skip to main content

Orchestrator

Struct Orchestrator 

Source
pub struct Orchestrator {
    pub manifest: Option<Manifest>,
    /* private fields */
}
Expand description

Top-level orchestrator. Construct via Orchestrator::builder.

Fields§

§manifest: Option<Manifest>

Optional manifest snapshot — kept for downstream consumers (CLI, telemetry).

Implementations§

Source§

impl Orchestrator

Source

pub fn builder() -> Builder

Start a fresh Builder.

The default max_parallelism is num_cpus::get(). The default base_ctx uses a fresh CancellationToken, current_dir() for workdir, and an empty env map. SDK/library consumers must explicitly call Builder::base_ctx with an allowlisted env (the CLI does this via filtered_env()) — defaulting to a snapshot of the parent process env would leak secrets like GITHUB_TOKEN / AWS_SECRET_ACCESS_KEY through any future tracing::debug!(?ctx) or panic dump (CWE-200). This is the engine-layer counterpart to the CLI’s existing env allowlist.

Source

pub async fn compute_plan(&self) -> Result<Plan, PlanError>

Compute the Plan for the registered actions against the current cache state. Pure: no side effects.

§Errors

Forwarded from Plan::compute.

Source

pub async fn execute_plan( &mut self, plan: &Plan, mode: ExecMode, ) -> Result<Vec<BuildEvent>, ExecError>

Execute every stale action in the plan, layer by layer.

Returns the chronological list of BuildEvents recorded across all executed layers. Cache writes happen after each layer settles, so a crash mid-layer leaves the prior layers persisted.

§Errors

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.