pub struct Ran {Show 23 fields
pub repository: String,
pub workflow: Option<String>,
pub name: String,
pub profile: String,
pub memory_cap: Option<u64>,
pub cpu_cap: Option<u64>,
pub memory_peak: u64,
pub cpu_peak: u64,
pub cpu_average: Option<u64>,
pub queued_at: u64,
pub started_at: Option<u64>,
pub runner_started_at: u64,
pub finished_at: Option<u64>,
pub oom_killed: bool,
pub hit_cap: Option<bool>,
pub own_cap: Option<bool>,
pub measure: Measure,
pub succeeded: bool,
pub failed: bool,
pub run_id: u64,
pub branch: Option<String>,
pub reserved: Option<u64>,
pub host_waited: u64,
}Expand description
One finished job of this daemon’s runners, as sizing reads it. Times in milliseconds.
Fields§
§repository: Stringowner/name.
workflow: Option<String>The workflow’s name, when known.
name: StringThe job’s name.
profile: StringThe profile its runner ran in.
memory_cap: Option<u64>Its container’s memory cap, when recorded.
cpu_cap: Option<u64>Its container’s CPU cap, millicores, when recorded.
memory_peak: u64Its sampled memory peak, bytes, as measure counts memory.
cpu_peak: u64Its sampled CPU peak, millicores.
cpu_average: Option<u64>Its CPU time over its run time, millicores; None when not recorded.
queued_at: u64When it was queued.
started_at: Option<u64>When it started; None for a job lost before.
runner_started_at: u64When its runner’s container started: before queued_at, it was a warm runner.
finished_at: Option<u64>When it finished, or was found lost.
oom_killed: boolWhether the kernel killed a process in its container for memory.
hit_cap: Option<bool>Whether its container’s memory, or a descendant’s, reached a limit with nothing left to reclaim
(memory.events oom); None when its events were not recorded.
own_cap: Option<bool>Whether its container’s own limit failed reclaim (memory.events.local oom), not a descendant’s; None
when not recorded, as before schema 14.
measure: MeasureWhat its sampled memory counts.
succeeded: boolWhether it completed with success: a failed or lost run may have stopped before its heaviest step.
failed: boolWhether it completed with failure or timed_out: not lost, not cancelled.
run_id: u64Its workflow run on GitHub: a re-run of its failed jobs has the same.
branch: Option<String>The branch it ran for, when known.
reserved: Option<u64>What measured admission reserved for it; None under caps or for an adopted runner.
host_waited: u64How long of its wait it waited because the host’s memory could not take its runner, in ms: no more slots would have started it sooner.
Implementations§
Source§impl Ran
impl Ran
Sourcepub fn capped(&self, cap: u64) -> Capped
pub fn capped(&self, cap: u64) -> Capped
What it says about its container’s cap. A kill that only a descendant’s own limit explains, the counters
showing a limit hit below the container and none at it, is a service container the job capped itself: clear.
A kill no sample saw an oom before, its last sample within AT_CAP percent of the cap, met it in the last
interval.
Trait Implementations§
impl Eq for Ran
impl StructuralPartialEq for Ran
Auto Trait Implementations§
impl Freeze for Ran
impl RefUnwindSafe for Ran
impl Send for Ran
impl Sync for Ran
impl Unpin for Ran
impl UnsafeUnpin for Ran
impl UnwindSafe for Ran
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.