pub struct Ran {Show 28 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 run_attempt: u32,
pub branch: Option<String>,
pub reserved: Option<u64>,
pub host_waited: u64,
pub unseen: u64,
pub cpu_periods: Option<u64>,
pub cpu_throttled: Option<u64>,
pub slot_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.
run_attempt: u32Which attempt of that run it belongs to, from 1.
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.
unseen: u64How much of its wait passed while no runnerd ran, in ms.
cpu_periods: Option<u64>The periods of its CPU quota it had work in (api::JobMetrics::cpu_periods); None where the kernel kept no
figure, as in runs from before schema 17.
cpu_throttled: Option<u64>Of those, the periods its quota throttled it in (api::JobMetrics::cpu_throttled).
slot_waited: u64How long of its wait no slot of its profile was free while the slice’s memory, the host’s and the CPU budget had room for its runner, in ms: what one more slot would have saved it (ADR 0090). 0 in runs from before schema 18.
Implementations§
Source§impl Ran
impl Ran
Sourcepub fn occupied(&self) -> Option<u64>
pub fn occupied(&self) -> Option<u64>
How long it kept its runner from anything else, in ms: from the runner’s start, a warm runner’s from when the job queued, to its finish. The start of a runner counts, as a slot’s runner is what a plan waits to see end.
Sourcepub fn throttling(&self) -> Throttling
pub fn throttling(&self) -> Throttling
What its CPU quota did to it.
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 Forget for Ran
impl Freeze for Ran
impl Move 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.