pub struct RunTasks {
pub state: RunState,
pub cancel_requested: bool,
pub dag: Arc<Dag>,
pub parse_version: String,
pub instances: Vec<StoredInstance>,
}Expand description
A run with its task instances.
Fields§
§state: RunStateThe run’s state.
cancel_requested: boolWhether a user asked to cancel it.
dag: Arc<Dag>The DAG version it runs.
parse_version: StringThe schedr version of the parse that DAG version came from.
instances: Vec<StoredInstance>Its task instances, in task ID order, then map_index order.
Implementations§
Source§impl RunTasks
impl RunTasks
Sourcepub fn cancels(&self, instance: &StoredInstance) -> bool
pub fn cancels(&self, instance: &StoredInstance) -> bool
Whether an attempt of instance is being cancelled: it was asked to be, or its run was,
unless it is a resource’s cleanup, which a run’s cancel keeps (decision 277).
Sourcepub fn cancels_instance(&self, instance_id: &str) -> bool
pub fn cancels_instance(&self, instance_id: &str) -> bool
As Self::cancels, by the instance’s ID (false for one not in the run).
Trait Implementations§
impl Eq for RunTasks
impl StructuralPartialEq for RunTasks
Auto Trait Implementations§
impl Freeze for RunTasks
impl RefUnwindSafe for RunTasks
impl Send for RunTasks
impl Sync for RunTasks
impl Unpin for RunTasks
impl UnsafeUnpin for RunTasks
impl UnwindSafe for RunTasks
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more