pub struct PeriodicConfig {
pub enabled: bool,
pub time_zone: String,
pub spec_type: SpecType,
pub spec: String,
pub prohibit_overlap: bool,
}Expand description
Specifies that the job can be scheduled at fixed times, dates or intervals. The periodic expression is always evaluated in the UTC timezone to ensure consistent evaluation when Nomad Servers span multiple time zones.
Fields§
§enabled: boolEnabled determines whether the periodic job will spawn child jobs.
time_zone: StringSpecifies the time zone to evaluate the next launch interval against. This is useful when wanting to account for day light savings in various time zones. The time zone must be parsable by Golang’s LoadLocation. The default is UTC.
spec_type: SpecTypeSpecType determines how Nomad is going to interpret the periodic expression.
SpecType::cron is the only supported SpecType currently.
spec: StringA cron expression configuring the interval the job is launched at. Supports predefined expressions such as “@daily” and “@weekly”
prohibit_overlap: boolProhibitOverlap can be set to true to enforce that the periodic job doesn’t spawn a new instance of the job if any of the previous jobs are still running.
It is defaulted to false.
Trait Implementations§
Source§impl Clone for PeriodicConfig
impl Clone for PeriodicConfig
Source§fn clone(&self) -> PeriodicConfig
fn clone(&self) -> PeriodicConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PeriodicConfig
impl Debug for PeriodicConfig
Source§impl Default for PeriodicConfig
impl Default for PeriodicConfig
Source§impl<'de> Deserialize<'de> for PeriodicConfig
impl<'de> Deserialize<'de> for PeriodicConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PeriodicConfig
impl PartialEq for PeriodicConfig
Source§impl Serialize for PeriodicConfig
impl Serialize for PeriodicConfig
impl Eq for PeriodicConfig
impl StructuralPartialEq for PeriodicConfig
Auto Trait Implementations§
impl Freeze for PeriodicConfig
impl RefUnwindSafe for PeriodicConfig
impl Send for PeriodicConfig
impl Sync for PeriodicConfig
impl Unpin for PeriodicConfig
impl UnwindSafe for PeriodicConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.