pub struct Timeline {
pub queued_at: u64,
pub container_started_at: Option<u64>,
pub started_at: Option<u64>,
pub finished_at: Option<u64>,
pub cleaned_at: Option<u64>,
pub unseen: u64,
pub seen_at: Option<u64>,
}Expand description
A job’s phases, in the order they happen. A runner’s container starts before GitHub gives it a job.
Fields§
§queued_at: u64GitHub queued the job.
container_started_at: Option<u64>The container of the runner that took it started.
started_at: Option<u64>The runner started the job.
finished_at: Option<u64>The job finished, by GitHub’s clock; or when its container was found gone.
cleaned_at: Option<u64>The container and the runner’s registration were removed.
unseen: u64Seconds of its wait that passed while no runnerd ran, as the daemon that started after measured them. Waits for a slot, as sizing, insights and the history’s figures count them, leave them out; its own wait does not.
seen_at: Option<u64>When runnerd first listed it queued (ADR 0092). None for a job no listing showed queued, such as one a
warm runner took first, and for one an older runnerd recorded.
Implementations§
Source§impl Timeline
impl Timeline
Sourcepub fn milestones(&self) -> Vec<Milestone>
pub fn milestones(&self) -> Vec<Milestone>
The moments it has times for, earliest first: a warm runner’s container started before the job was queued. When runnerd first listed it splits its wait in three (ADR 0092): before it, runnerd had not seen the job; from it to its container’s start, runnerd had; then the runner booted. A listing never comes before the queueing, however GitHub’s clock and this machine’s differ.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Timeline
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.