pub struct WorkerTimeouts {Show 33 fields
pub runner_start: Duration,
pub fork_preload: Duration,
pub cleanup: Duration,
pub sensor_max_wait: Duration,
pub watcher_block_limit: Duration,
pub watcher_import_limit: Duration,
pub watcher_memory_budget: u64,
pub watcher_poke_overruns: u32,
pub resource_cleanup: Duration,
pub output_drain: Duration,
pub fork_answer: Duration,
pub fork_backoff: ForkBackoff,
pub log_sweep: Duration,
pub orphan: OrphanWaits,
pub orphan_grace: Duration,
pub reconnect_first: Duration,
pub reconnect_max: Duration,
pub alive: Duration,
pub deregister: Duration,
pub drain_tick: Duration,
pub stop_poll: Duration,
pub connection_cancel_grace: Duration,
pub accept_retry: Duration,
pub master_sample_window: Duration,
pub clock_skew_warning: Duration,
pub results_per_journal_group: usize,
pub starts_per_journal_group: usize,
pub result_resends: u32,
pub result_resend_gap_max: u32,
pub unacked_messages_kept: usize,
pub unsent_connection_answers: usize,
pub task_connections_open: usize,
pub watcher_log_backlog: usize,
}Expand description
How long what a worker starts may take ([worker]).
Fields§
§runner_start: DurationA runner’s hello (runner_start_timeout).
fork_preload: DurationA fork server’s preloading (fork_server_preload_timeout).
cleanup: DurationOne try of a cleanup that sets no timeout of its own (cleanup_timeout).
sensor_max_wait: DurationHow long a wait step without a max_wait waits ([sensors] default_max_wait).
watcher_block_limit: DurationHow long a wait step may hold its host’s loop ([watchers] block_limit).
watcher_import_limit: DurationHow long importing a DAG file may hold it ([dags] parse_file_timeout).
watcher_memory_budget: u64The memory of all watcher hosts together ([watchers] memory_budget).
watcher_poke_overruns: u32How many calls in a row may run past a sensor poke’s every ([watchers] poke_overruns).
resource_cleanup: DurationOne try of a resource’s cleanup that sets no timeout (resource_cleanup_timeout).
output_drain: DurationHow long a stopped process’s output may take to reach its log (output_drain_timeout).
fork_answer: DurationHow long a fork server may take to answer a request (fork_answer_timeout).
fork_backoff: ForkBackoffHow a fork server’s restarts are spaced.
log_sweep: DurationHow often old logs are swept (log_sweep_interval).
orphan: OrphanWaitsHow an orphan is stopped.
orphan_grace: DurationHow long an orphan gets to end on SIGTERM (orphan_grace).
reconnect_first: DurationThe first wait after the master connection drops (reconnect_backoff_first).
reconnect_max: DurationThe longest one (reconnect_backoff_max).
alive: DurationHow often the event loop turns at least, however quiet (alive_interval).
deregister: DurationHow long deregistering may take (deregister_wait).
drain_tick: DurationHow often a drain looks at its state (drain_tick).
stop_poll: DurationHow often a stopped process’s group is looked at (stop_poll).
connection_cancel_grace: DurationHow long a connection test’s process gets from SIGTERM to SIGKILL
(connection_job_cancel_grace).
accept_retry: DurationHow long the log endpoint waits after a failed accept (accept_retry).
master_sample_window: DurationHow far back the tightest master-time sample is looked for (master_sample_window,
decision 447).
clock_skew_warning: DurationThe wall-clock difference from the master, beyond the round trip, that is warned about
(clock_skew_warning, decision 449).
results_per_journal_group: usizeThe most results kept in the journal as one group (RESULTS_PER_JOURNAL_GROUP).
starts_per_journal_group: usizeThe most assignments whose journal records are written as one group
(STARTS_PER_JOURNAL_GROUP).
result_resends: u32How many times a result is sent again over one session before it reconnects
(RESULT_RESENDS).
result_resend_gap_max: u32The most heartbeats between two sends of an unacknowledged result
(RESULT_RESEND_GAP_MAX).
unacked_messages_kept: usizeThe messages kept waiting to be heard of (UNACKED_MESSAGES_KEPT).
unsent_connection_answers: usizeThe connections jobs’ answers kept while no master listens
(UNSENT_CONNECTION_ANSWERS).
task_connections_open: usizeThe most context connections a task may have open at once (TASK_CONNECTIONS_OPEN).
watcher_log_backlog: usizeA wait step’s messages waiting for its attempt before its host waits too
(WATCHER_LOG_BACKLOG).
Trait Implementations§
Source§impl Clone for WorkerTimeouts
impl Clone for WorkerTimeouts
Source§fn clone(&self) -> WorkerTimeouts
fn clone(&self) -> WorkerTimeouts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WorkerTimeouts
Source§impl Debug for WorkerTimeouts
impl Debug for WorkerTimeouts
impl Eq for WorkerTimeouts
Source§impl PartialEq for WorkerTimeouts
impl PartialEq for WorkerTimeouts
impl StructuralPartialEq for WorkerTimeouts
Auto Trait Implementations§
impl Freeze for WorkerTimeouts
impl RefUnwindSafe for WorkerTimeouts
impl Send for WorkerTimeouts
impl Sync for WorkerTimeouts
impl Unpin for WorkerTimeouts
impl UnsafeUnpin for WorkerTimeouts
impl UnwindSafe for WorkerTimeouts
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,
§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);