pub struct Job {
pub timeout: Option<PrettyDuration>,
pub max_schedule_drift: Option<PrettyDuration>,
pub retries: Option<u32>,
pub jitter_percent_max: Option<u8>,
pub jitter_percent_min: Option<u8>,
pub other: IndexMap<String, Value>,
/* private fields */
}
Expand description
Job configuration.
Fields§
§timeout: Option<PrettyDuration>
§max_schedule_drift: Option<PrettyDuration>
Don’t start job if past the due time by this amount, instead opting to wait for the next instance of it to be triggered.
retries: Option<u32>
§jitter_percent_max: Option<u8>
Maximum percent of “jitter” to introduce between invocations.
Value range: 0-100
Jitter is used to spread out jobs over time. The calculation works by multiplying the time between invocations by a random amount, and taking the percentage of that random amount.
See also Self::jitter_percent_min
to set a minimum jitter.
jitter_percent_min: Option<u8>
Minimum “jitter” to introduce between invocations.
Value range: 0-100
Jitter is used to spread out jobs over time. The calculation works by multiplying the time between invocations by a random amount, and taking the percentage of that random amount.
If not specified while jitter_percent_max
is, it will default to 10%.
See also Self::jitter_percent_max
to set a maximum jitter.
other: IndexMap<String, Value>
Additional unknown fields.
Exists for forward compatibility for newly added fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 JsonSchema for Job
impl JsonSchema for Job
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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.