pub struct Held {
pub path: String,
pub exception: String,
pub message: String,
pub schedr_version: String,
}Expand description
Why a DAG is held: its file’s import error in its root’s current parse (decision 72).
Fields§
§path: StringThe file, relative to its root.
exception: StringThe error’s exception class name.
message: StringThe error’s message.
schedr_version: StringThe schedr version of the parse that failed (0.2.0): after an upgrade, the reason
says the file stopped importing with it, the code being the same (decision 441).
Implementations§
Source§impl Held
impl Held
Sourcepub fn reason(&self, dag_id: &str) -> String
pub fn reason(&self, dag_id: &str) -> String
Why dag_id gets no runs, for people (the API, the UI, a refused trigger, the log):
it is the DAG’s file that failed, so every DAG of the file is held, and what to do
about it (decisions 72, 72.3).
Sourcepub fn by_file(errors: &[ImportErrorRecord]) -> HashMap<(String, String), Self>
pub fn by_file(errors: &[ImportErrorRecord]) -> HashMap<(String, String), Self>
The current parses’ import errors by (root, path), the files whose DAGs are held: a transient error (a timeout, a runner that died) holds nothing, since the file is parsed again and its DAGs keep their last good version meanwhile (decision 72.2).
Trait Implementations§
impl Eq for Held
impl StructuralPartialEq for Held
Auto Trait Implementations§
impl Freeze for Held
impl RefUnwindSafe for Held
impl Send for Held
impl Sync for Held
impl Unpin for Held
impl UnsafeUnpin for Held
impl UnwindSafe for Held
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,
§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
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> ⓘ
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> ⓘ
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