pub enum MissedPolicy {
Skip,
RunOnce,
Backfill,
}Expand description
surveyed policy behavior what happens to periodic runs missed during downtime. Nobody in the surveyed field backfills; River can skip a tick entirely across a leader election.
Variants§
Skip
Default, and what every other queue does: a stale backlog is dropped; the most recent tick fires only if it is less than one period old.
RunOnce
One catch-up run covers the backlog, no matter how old.
Backfill
Fire the most recent backfill_limit missed ticks, each as its own job.
Implementations§
Trait Implementations§
Source§impl Clone for MissedPolicy
impl Clone for MissedPolicy
Source§fn clone(&self) -> MissedPolicy
fn clone(&self) -> MissedPolicy
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 moreimpl Copy for MissedPolicy
Source§impl Debug for MissedPolicy
impl Debug for MissedPolicy
impl Eq for MissedPolicy
Source§impl PartialEq for MissedPolicy
impl PartialEq for MissedPolicy
impl StructuralPartialEq for MissedPolicy
Auto Trait Implementations§
impl Freeze for MissedPolicy
impl RefUnwindSafe for MissedPolicy
impl Send for MissedPolicy
impl Sync for MissedPolicy
impl Unpin for MissedPolicy
impl UnsafeUnpin for MissedPolicy
impl UnwindSafe for MissedPolicy
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