pub struct RunOverview {
pub running: BTreeMap<String, u32>,
pub last_scheduled: BTreeMap<String, Timestamp>,
pub queued: BTreeMap<String, Vec<QueuedRun>>,
}Expand description
What the scheduler needs of every DAG’s runs, read at once for a whole round
(Database::run_overview): a few queries, however many DAGs there are (B12).
Fields§
§running: BTreeMap<String, u32>Running runs, per DAG.
last_scheduled: BTreeMap<String, Timestamp>The latest scheduled run’s planned_for, per DAG.
queued: BTreeMap<String, Vec<QueuedRun>>Queued runs, per DAG, oldest first.
Implementations§
Source§impl RunOverview
impl RunOverview
Sourcepub fn last_scheduled(&self, dag_id: &DagId) -> Option<Timestamp>
pub fn last_scheduled(&self, dag_id: &DagId) -> Option<Timestamp>
dag_id’s latest scheduled planned_for, if it has a scheduled run.
Trait Implementations§
Source§impl Clone for RunOverview
impl Clone for RunOverview
Source§fn clone(&self) -> RunOverview
fn clone(&self) -> RunOverview
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 RunOverview
impl Debug for RunOverview
Source§impl Default for RunOverview
impl Default for RunOverview
Source§fn default() -> RunOverview
fn default() -> RunOverview
Returns the “default value” for a type. Read more
impl Eq for RunOverview
Source§impl PartialEq for RunOverview
impl PartialEq for RunOverview
impl StructuralPartialEq for RunOverview
Auto Trait Implementations§
impl Freeze for RunOverview
impl RefUnwindSafe for RunOverview
impl Send for RunOverview
impl Sync for RunOverview
impl Unpin for RunOverview
impl UnsafeUnpin for RunOverview
impl UnwindSafe for RunOverview
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