pub struct AttemptRecord {Show 17 fields
pub id: String,
pub try_number: u32,
pub worker_id: Option<String>,
pub status: Option<AttemptStatus>,
pub exit_code: Option<i32>,
pub error_kind: Option<String>,
pub error_summary: Option<String>,
pub assigned_at: Timestamp,
pub started_at: Option<Timestamp>,
pub ended_at: Option<Timestamp>,
pub duration_ms: Option<u64>,
pub peak_memory_bytes: Option<u64>,
pub start_method: Option<String>,
pub usage: Option<ProcessUsage>,
pub core_dumped: bool,
pub cleanup: CleanupRecord,
pub chained_run_id: Option<String>,
}Expand description
An attempt, as shown.
Fields§
§id: StringIts ID.
try_number: u32Its try number.
worker_id: Option<String>The worker it ran on.
status: Option<AttemptStatus>How it ended; None while it runs.
exit_code: Option<i32>The process’s exit code.
error_kind: Option<String>The error kind schedr recognised.
error_summary: Option<String>The structured error summary (JSON text).
assigned_at: TimestampWhen it was assigned.
started_at: Option<Timestamp>When the worker started it.
ended_at: Option<Timestamp>When it ended.
duration_ms: Option<u64>How long it ran, measured by the worker (see crate::attempts::AttemptEnd).
peak_memory_bytes: Option<u64>The peak memory of its process group, sampled by the worker’s watchdog.
start_method: Option<String>How the worker started its process (spawn or fork); None until it started.
usage: Option<ProcessUsage>What its process used (its parent’s view at its exit), if the worker read it.
core_dumped: boolWhether its process dumped core.
cleanup: CleanupRecordIts cleanup (empty for a task without one).
chained_run_id: Option<String>The run a TriggerDagOperator’s attempt started (no worker runs it).
Trait Implementations§
Source§impl Clone for AttemptRecord
impl Clone for AttemptRecord
Source§fn clone(&self) -> AttemptRecord
fn clone(&self) -> AttemptRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttemptRecord
impl Debug for AttemptRecord
impl Eq for AttemptRecord
Source§impl PartialEq for AttemptRecord
impl PartialEq for AttemptRecord
impl StructuralPartialEq for AttemptRecord
Auto Trait Implementations§
impl Freeze for AttemptRecord
impl RefUnwindSafe for AttemptRecord
impl Send for AttemptRecord
impl Sync for AttemptRecord
impl Unpin for AttemptRecord
impl UnsafeUnpin for AttemptRecord
impl UnwindSafe for AttemptRecord
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
Mutably borrows from an owned value. Read more
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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