Skip to main content

OrchestrationTaskStatus

Enum OrchestrationTaskStatus 

Source
pub enum OrchestrationTaskStatus {
Show 18 variants Proposed, Planned, Creating, Running, Reviewing, ReviewApplying, WaitingForInput, Ready, Reported, ContinuationPending, AwaitingIntegration, Merging, Integrated, ReviewRequested, IntegrationFailed, Detached, Failed, Canceled,
}
Expand description

Lifecycle state for one orchestration task and its child session.

Variants§

§

Proposed

Follow-up scope proposed by the controller and awaiting approval.

§

Planned

Persisted with the proposed plan, not yet approved or fanned out.

§

Creating

The child session is being created and started.

§

Running

The child session is running its turn.

§

Reviewing

Focused review is running or awaiting a persisted result.

§

ReviewApplying

The coordinator is applying one focused-review suggestion set.

§

WaitingForInput

The child session parked on clarification questions.

§

Ready

The child session finished and is ready for review or integration.

§

Reported

A research child returned its report and its worktree was discarded.

§

ContinuationPending

Approved feedback is being delivered to the existing managed child.

§

AwaitingIntegration

Verification passed and this task awaits its integration gate.

§

Merging

The coordinator has started branch merge or publication.

§

Integrated

Branch work was merged locally successfully.

§

ReviewRequested

The child branch was published and is waiting for its forge review request to merge.

§

IntegrationFailed

Integration failed and requires attention.

§

Detached

Ownership permanently transferred from the coordinator to the user.

§

Failed

The child session failed, or a straggler was canceled out of band.

§

Canceled

The task was canceled as part of a cascade cancel.

Implementations§

Source§

impl OrchestrationTaskStatus

Source

pub fn from_child_status(status: SessionStatus) -> Self

Maps one observed child-session status into the task state owned by orchestration.

Source

pub fn is_settled(self) -> bool

Returns whether the task reached a state that fan-in treats as settled.

A canceled straggler counts as settled so out-of-band cancellation unblocks the roll-up instead of stalling it.

Source

pub fn campaign_label(self) -> &'static str

Returns the concise user-facing label shown in campaign status output.

Source

pub fn occupies_parallelism_slot(self) -> bool

Returns whether the task currently occupies a parallelism slot.

A task waiting for user input still holds its child session and worktree, so it keeps consuming a slot until the user answers.

Source

pub fn can_transition_to(self, next: OrchestrationTaskStatus) -> bool

Returns whether a transition to next is valid.

Retry re-enters Creating from a settled state with the same task key, which is what makes replying “retry the failed tasks” a clean respawn rather than a duplicate fan-out.

Source

pub fn is_integration_settled(self) -> bool

Returns whether this task no longer needs integration work.

Trait Implementations§

Source§

impl Clone for OrchestrationTaskStatus

Source§

fn clone(&self) -> OrchestrationTaskStatus

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 Copy for OrchestrationTaskStatus

Source§

impl Debug for OrchestrationTaskStatus

Source§

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

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

impl Display for OrchestrationTaskStatus

Source§

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

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

impl Eq for OrchestrationTaskStatus

Source§

impl FromStr for OrchestrationTaskStatus

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for OrchestrationTaskStatus

Source§

fn eq(&self, other: &OrchestrationTaskStatus) -> 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 OrchestrationTaskStatus

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoMaybeUndefined<T> for T

Source§

fn into_maybe_undefined(self) -> MaybeUndefined<T>

Converts this value into a three-state builder argument.
Source§

impl<T> IntoOption<T> for T

Source§

fn into_option(self) -> Option<T>

Converts this value into an optional builder argument.
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more