pub struct TriggerRecord {Show 16 fields
pub dag_id: String,
pub instance_id: Option<String>,
pub worker_id: Option<String>,
pub dag_version_id: Option<String>,
pub code_hash: Option<String>,
pub bookmark: Option<String>,
pub last_planned_for: Option<Timestamp>,
pub last_error: Option<String>,
pub failures: u32,
pub not_before: Option<Timestamp>,
pub stopped_why: Option<String>,
pub stopped_on: Option<String>,
pub started_at: Option<Timestamp>,
pub last_event_at: Option<Timestamp>,
pub last_restart_at: Option<Timestamp>,
pub last_poked_at: Option<Timestamp>,
}Expand description
A DAG’s trigger.
Fields§
§dag_id: StringIts DAG.
instance_id: Option<String>This run of it, while a worker has it.
worker_id: Option<String>The worker that has it.
dag_version_id: Option<String>The DAG version it runs: a new one starts it again.
code_hash: Option<String>The hash of the root it runs from: other code starts it again.
bookmark: Option<String>The last key acted on: its after when it starts.
last_planned_for: Option<Timestamp>planned_for of the last event’s run: the next one’s since.
last_error: Option<String>Why it ended last, if it failed.
failures: u32Its failures in a row.
not_before: Option<Timestamp>Not started again before this moment.
stopped_why: Option<String>Why it isn’t to run although its DAG wants it.
stopped_on: Option<String>What it stopped on: its DAG version and code.
started_at: Option<Timestamp>When this run of it started.
last_event_at: Option<Timestamp>When it last found something, new or not.
last_restart_at: Option<Timestamp>When it was last started again for finding nothing for too long.
last_poked_at: Option<Timestamp>When a poke’s call last ended.
Trait Implementations§
Source§impl Clone for TriggerRecord
impl Clone for TriggerRecord
Source§fn clone(&self) -> TriggerRecord
fn clone(&self) -> TriggerRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerRecord
impl Debug for TriggerRecord
Source§impl Default for TriggerRecord
impl Default for TriggerRecord
Source§fn default() -> TriggerRecord
fn default() -> TriggerRecord
Returns the “default value” for a type. Read more
impl Eq for TriggerRecord
Source§impl PartialEq for TriggerRecord
impl PartialEq for TriggerRecord
impl StructuralPartialEq for TriggerRecord
Auto Trait Implementations§
impl Freeze for TriggerRecord
impl RefUnwindSafe for TriggerRecord
impl Send for TriggerRecord
impl Sync for TriggerRecord
impl Unpin for TriggerRecord
impl UnsafeUnpin for TriggerRecord
impl UnwindSafe for TriggerRecord
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