Skip to main content

CancelledRecord

Enum CancelledRecord 

Source
pub enum CancelledRecord {
    SignaledInFlight {
        task: TaskId,
        exit_status: ExitStatus,
        stdout_hash: [u8; 32],
        stderr_hash: [u8; 32],
    },
    UpstreamCancelled {
        task: TaskId,
        upstream: TaskId,
    },
    RunCancelled {
        task: TaskId,
    },
}
Expand description

Record of a task that ended in the executor-initiated cancelled state per EXEC-009 / EXEC-013.

The three variants distinguish the three structural shapes a cancellation can take in the run-graph view:

  • Self::SignaledInFlight is the only shape a single-task spawn-step future can produce: the cancellation token fired while the child was running, and the executor sent SIGTERM (and possibly SIGKILL after EXEC-014’s grace period).
  • Self::UpstreamCancelled is the cascade counterpart to SkipCause::UpstreamFailed: a hard descendant of a cancelled task is itself cancelled. upstream carries the root cancelled task, not the immediate hard predecessor (same root-cause attribution as SkipRecord).
  • Self::RunCancelled covers tasks that were still in state.ready (or whose lookup-step was in flight) when the scheduler observed the cancellation signal and drained the admission front. These tasks never made it to the spawn step; no process was started or signalled.

Variants§

§

SignaledInFlight

The task was admitted, spawned, and signalled by the executor in response to the cancellation token firing. exit_status records the child’s exit (typically signal-terminated, but a polite child may exit cleanly after SIGTERM); the captured stream hashes are present for diagnostic purposes even though EXEC-015 blocks the cache store.

Fields

§task: TaskId

The task that was signalled.

§exit_status: ExitStatus

The child’s exit status after the signal flow ran to completion.

§stdout_hash: [u8; 32]

Hash of captured stdout under the cache’s HashAlgo, for diagnostic / predecessor-streams use.

§stderr_hash: [u8; 32]

Hash of captured stderr under the cache’s HashAlgo, for diagnostic / predecessor-streams use.

§

UpstreamCancelled

The task was cascade-cancelled because a transitively- upstream task entered the cancelled state. Mirrors SkipCause::UpstreamFailed for the cancellation flow.

Fields

§task: TaskId

The task that was cascade-cancelled.

§upstream: TaskId

The root cancelled task that triggered the cascade.

§

RunCancelled

The task was in state.ready (or its lookup-step was in flight) when the scheduler observed the cancellation signal. No process was spawned; the task simply never entered the spawn-step pipeline.

Fields

§task: TaskId

The task whose admission was drained on cancel.

Implementations§

Source§

impl CancelledRecord

Source

pub fn task(&self) -> &TaskId

The task this record describes, available on every variant.

Trait Implementations§

Source§

impl Clone for CancelledRecord

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 CancelledRecord

Source§

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

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

impl Eq for CancelledRecord

Source§

impl PartialEq for CancelledRecord

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 CancelledRecord

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