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
impl OrchestrationTaskStatus
Sourcepub fn from_child_status(status: SessionStatus) -> Self
pub fn from_child_status(status: SessionStatus) -> Self
Maps one observed child-session status into the task state owned by orchestration.
Sourcepub fn is_settled(self) -> bool
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.
Sourcepub fn campaign_label(self) -> &'static str
pub fn campaign_label(self) -> &'static str
Returns the concise user-facing label shown in campaign status output.
Sourcepub fn occupies_parallelism_slot(self) -> bool
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.
Sourcepub fn can_transition_to(self, next: OrchestrationTaskStatus) -> bool
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.
Sourcepub fn is_integration_settled(self) -> bool
pub fn is_integration_settled(self) -> bool
Returns whether this task no longer needs integration work.
Trait Implementations§
Source§impl Clone for OrchestrationTaskStatus
impl Clone for OrchestrationTaskStatus
Source§fn clone(&self) -> OrchestrationTaskStatus
fn clone(&self) -> OrchestrationTaskStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OrchestrationTaskStatus
Source§impl Debug for OrchestrationTaskStatus
impl Debug for OrchestrationTaskStatus
Source§impl Display for OrchestrationTaskStatus
impl Display for OrchestrationTaskStatus
impl Eq for OrchestrationTaskStatus
Source§impl FromStr for OrchestrationTaskStatus
impl FromStr for OrchestrationTaskStatus
Source§impl PartialEq for OrchestrationTaskStatus
impl PartialEq for OrchestrationTaskStatus
impl StructuralPartialEq for OrchestrationTaskStatus
Auto Trait Implementations§
impl Freeze for OrchestrationTaskStatus
impl RefUnwindSafe for OrchestrationTaskStatus
impl Send for OrchestrationTaskStatus
impl Sync for OrchestrationTaskStatus
impl Unpin for OrchestrationTaskStatus
impl UnsafeUnpin for OrchestrationTaskStatus
impl UnwindSafe for OrchestrationTaskStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.