pub struct StopOutcome {
pub gracefully_completed: usize,
pub panicked: usize,
pub force_aborted: usize,
}Expand description
Outcome of a graceful (or partially force-aborted) worker shutdown, as
returned by Worker::stop_with_timeout.
The three counts always sum to concurrency — the job-processing tasks
spawned by Worker::start. The stale-claim reaper is cancelled up front
and deliberately excluded, so these numbers describe in-flight jobs and
nothing else.
Fields§
§gracefully_completed: usizeNumber of worker tasks that returned normally on their own within the grace period.
panicked: usizeNumber of worker tasks that panicked while a job handler was running,
observed as a JoinError while draining during the grace period. Each
occurrence is also logged at error level unconditionally (regardless
of WorkerConfig::log_execution), since the job that task was
processing is left orphaned “Processing” with no other signal.
force_aborted: usizeNumber of worker tasks still running when the grace period elapsed and were therefore forcibly aborted as a last resort.
Trait Implementations§
Source§impl Clone for StopOutcome
impl Clone for StopOutcome
Source§fn clone(&self) -> StopOutcome
fn clone(&self) -> StopOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more