pub struct ExecutionRecord {Show 27 fields
pub uuid: String,
pub pid: Option<u32>,
pub status: ExecutionStatus,
pub exit_code: Option<i32>,
pub command: String,
pub log_path: String,
pub start_time: String,
pub end_time: Option<String>,
pub attempt: Option<ExecutionAttempt>,
pub attempt_history: Vec<Value>,
pub continues: Option<String>,
pub end_time_source: Option<String>,
pub observed_at: Option<String>,
pub stale_detected_at: Option<String>,
pub container_started_at: Option<String>,
pub container_state: Option<String>,
pub container_removed_observed_at: Option<String>,
pub oom_killed: Option<bool>,
pub cgroup_memory: Option<CgroupMemory>,
pub cpu_penalty: Option<Value>,
pub exit_reason: Option<String>,
pub memory_exhausted: Option<bool>,
pub memory_exhausted_reason: Option<String>,
pub working_directory: String,
pub shell: String,
pub platform: String,
pub options: HashMap<String, Value>,
}Expand description
Command Execution Record
Fields§
§uuid: String§pid: Option<u32>§status: ExecutionStatus§exit_code: Option<i32>§command: String§log_path: String§start_time: String§end_time: Option<String>§attempt: Option<ExecutionAttempt>§attempt_history: Vec<Value>§continues: Option<String>UUID of the execution this one continues (--continues, issue #231).
end_time_source: Option<String>Where end_time came from (issue #170.2): docker-finished-at,
log-footer or observed-at. Without it a real finish time and a
timestamp taken when someone happened to run --status are
indistinguishable.
observed_at: Option<String>When the end of the execution was observed, for the cases where no real finish time exists (issue #170.2).
stale_detected_at: Option<String>When cleanup_stale() gave up on a record. Deliberately not an
end_time: cleanup time is not a finish time (issue #170.3).
container_started_at: Option<String>docker inspect .State.StartedAt of the container that ran the command.
container_state: Option<String>removed once the container is known to be gone (issue #225), with
when that was observed; options.containerId is kept as history.
container_removed_observed_at: Option<String>§oom_killed: Option<bool>§cgroup_memory: Option<CgroupMemory>cgroup v2 memory counters the detached watcher sampled while the
container ran (issue #182). Unlike the sticky oom_killed, they are
counted for this run only.
cpu_penalty: Option<Value>§exit_reason: Option<String>Hint explaining an otherwise opaque exit code (issue #162). Derived from the log tail on read; never a stored verdict.
memory_exhausted: Option<bool>Memory-exhaustion observation derived from the log tail (issue #165).
A runtime that aborts on its own heap limit never trips oom_killed.
memory_exhausted_reason: Option<String>The log line that carried the memory-exhaustion evidence (issue #165).
working_directory: String§shell: String§platform: String§options: HashMap<String, Value>Implementations§
Source§impl ExecutionRecord
impl ExecutionRecord
Sourcepub fn with_options(options: ExecutionRecordOptions) -> Self
pub fn with_options(options: ExecutionRecordOptions) -> Self
Create a new execution record with options