pub struct Settings {Show 32 fields
pub heartbeat_interval: Duration,
pub lease_timeout: Duration,
pub takeover_wait: Duration,
pub cancel_grace: Duration,
pub switch_off_after: u32,
pub max_queued_events: u32,
pub failing_after: u32,
pub sensor_max_wait: Duration,
pub parse_job_timeout: Duration,
pub code_wait: Duration,
pub set_aside: Duration,
pub handed_call_min: Duration,
pub cleanup_move_wait: Duration,
pub script_root_grace: Duration,
pub event_lookback: Duration,
pub read_back: ReadBack,
pub listen_retry: Duration,
pub timings: MasterTimings,
pub quiet: QuietSettings,
pub max_message_size: usize,
pub messages_per_turn: usize,
pub max_instances: usize,
pub backfill_max_runs: u32,
pub worker_report: ReportLimits,
pub retention: RetentionSettings,
pub samples: SampleSettings,
pub with_webserver: bool,
pub rounds: RoundLimits,
pub for_future_tolerance: Duration,
pub code_retry_delay: Duration,
pub failed_group_messages_per_turn: usize,
pub worker_stream_buffer: usize,
}Expand description
The master’s timing, sent to every worker in Registered so all behave the same.
Fields§
§heartbeat_interval: DurationHow often workers send Heartbeat.
lease_timeout: DurationA worker silent for this long is lost.
takeover_wait: DurationHow long a deposed leader may still believe it leads, and answer its workers’ heartbeats: its lease period less the query timeout (decision 444). A worker restored at a takeover is lost only this plus its lease after the takeover.
cancel_grace: DurationThe time between SIGTERM and SIGKILL when an attempt is cancelled.
switch_off_after: u32After how many host kills in a row a wait step is switched off (0: never).
max_queued_events: u32Queued event runs of a DAG that stop its trigger.
failing_after: u32Errors in a row that make a trigger failing.
sensor_max_wait: DurationHow long a wait step without a max_wait waits.
parse_job_timeout: DurationHow long a worker has for a parse job.
code_wait: DurationHow long a task’s code may be missing on every eligible worker.
set_aside: DurationHow long a task whose assignment fails on its own is set aside.
handed_call_min: DurationThe least an @sensor(wait_for=...)’s call gets once handed its run (decision 353).
cleanup_move_wait: DurationHow long a lost worker’s cleanup waits before it moves, on top of cancel_grace.
script_root_grace: DurationHow long no alive worker must report a script root (counted from the master’s start too) before it counts as absent: DAG roots using it are then no longer withdrawn for it (decision 303).
event_lookback: DurationHow far before the newest event an EventNamed trigger acted on it looks again, for one
stored late (SCHEDR_HIDDEN__MASTER__EVENT_LOOKBACK, decision 354).
read_back: ReadBackHow a commit cut off is read back (see crate::dispatch::ReadBack).
listen_retry: DurationHow often to try listening for commands again after it failed to start.
timings: MasterTimingsHow its loop and its parse jobs are paced.
quiet: QuietSettingsWhich DAGs a round visits ([master] quiet_dags, decision 485).
max_message_size: usizeThe largest message a worker may send ([grpc] max_message_size).
messages_per_turn: usizeThe most messages of one worker handled in one turn of the core’s lock
(SCHEDR_HIDDEN__MASTER__MESSAGES_PER_TURN, M4B.3).
max_instances: usizeThe most instances a mapped task may have ([mapping] max_instances).
backfill_max_runs: u32The most fire times a backfill’s range may have ([backfill] max_runs).
worker_report: ReportLimitsThe most records of one kind, and characters of each text, kept of what a worker reports (wait step hosts, warnings; B183).
retention: RetentionSettings[retention] and its job’s timing (decisions 430-435).
samples: SampleSettingsHow processes are sampled and their samples kept (decision 464).
with_webserver: boolWhether this master’s own process runs the webserver too (standalone): its sample says so, and no webserver samples it again.
rounds: RoundLimitsHow much one round or pass does at most (decision 493).
for_future_tolerance: DurationHow far ahead of the master’s clock a run’s --for may be
(SCHEDR_HIDDEN__MASTER__FOR_FUTURE_TOLERANCE).
code_retry_delay: DurationWhen a task whose code wasn’t on its worker yet is tried again
(SCHEDR_HIDDEN__MASTER__CODE_RETRY_DELAY).
failed_group_messages_per_turn: usizeThe most messages of a failed group handled one by one in a turn
(SCHEDR_HIDDEN__MASTER__FAILED_GROUP_MESSAGES_PER_TURN, M4B.3).
worker_stream_buffer: usizeThe messages that wait for a worker before it is taken for one that stopped reading
(SCHEDR_HIDDEN__MASTER__WORKER_STREAM_BUFFER).
Trait Implementations§
impl Copy for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
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> ⓘ
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> ⓘ
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);