pub enum WaitCause {
Barrier,
Start,
Slot,
Budget,
Host,
Cpu,
Booting,
Preparing,
Paused,
Backoff,
NoPool,
Other,
}Expand description
What a queued job’s wait is counted under in the history, one per Waiting reason or a few of them together
(ADR 0154): each plan that holds a job adds the time to the next plan to its cause. Stored by WaitCause::word,
so a cause a later runnerd adds reads as WaitCause::Other.
Variants§
Barrier
Behind an older job that waited long enough for memory or CPU that no younger one starts before it
(Waiting::BehindMemory, Waiting::BehindCpu).
Start
Behind an older job’s runner starting first (Waiting::BehindStart).
Slot
Every slot of its profile held a runner (Waiting::NoSlot).
Budget
Its runner did not fit the slice’s memory budget (Waiting::Memory).
Host
Its runner did not fit what the host’s memory has to spare (Waiting::HostMemory).
Cpu
Its runner did not fit the CPU budget (Waiting::Cpu).
Booting
A runner was up or starting for it, waiting for GitHub to hand it a job (Waiting::RunnerStarting).
Preparing
Its profile rebuilt its snapshot, pulled its image, or emptied what a host crash may have torn
(Waiting::Reseeding, Waiting::PullingImage, Waiting::Torn).
Paused
Its repository was paused (Waiting::Paused).
Backoff
Runners of its repository failed, so none started for a while (Waiting::Backoff).
NoPool
No pool served its labels (Waiting::NoPool).
Other
A reason this build does not know: a Waiting from a newer daemon, or a cause a later runnerd stored.
Implementations§
Source§impl WaitCause
impl WaitCause
Sourcepub const ALL: [WaitCause; 12]
pub const ALL: [WaitCause; 12]
Every cause, in the order a split lists them when two took as long.
Sourcepub fn word(self) -> &'static str
pub fn word(self) -> &'static str
Its name as one word, the history’s key and the API’s: barrier, start, slot, budget, host, cpu,
booting, preparing, paused, backoff, no-pool or other.
Sourcepub fn from_word(word: &str) -> WaitCause
pub fn from_word(word: &str) -> WaitCause
The cause word names; WaitCause::Other for a word this build does not know.
Trait Implementations§
impl Copy for WaitCause
Source§impl<'de> Deserialize<'de> for WaitCause
impl<'de> Deserialize<'de> for WaitCause
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 WaitCause
Source§impl Ord for WaitCause
impl Ord for WaitCause
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for WaitCause
impl PartialOrd for WaitCause
impl StructuralPartialEq for WaitCause
Auto Trait Implementations§
impl Forget for WaitCause
impl Freeze for WaitCause
impl Move for WaitCause
impl RefUnwindSafe for WaitCause
impl Send for WaitCause
impl Sync for WaitCause
impl Unpin for WaitCause
impl UnsafeUnpin for WaitCause
impl UnwindSafe for WaitCause
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.