pub struct Repository {
pub name: String,
pub profile: String,
pub labels: Vec<String>,
pub paused: bool,
pub held: Option<Hold>,
pub queued: Vec<QueuedJob>,
pub runner_memory: Option<u64>,
pub runner_cpu: Option<u64>,
pub waits: Waits,
pub usual: Option<Duration>,
pub warm: usize,
}Expand description
One of a repository’s pools as the planner sees it: its runners in one profile, registered with one set of labels
(ADR 0058). A repository with one [[repositories]] entry has one.
Fields§
§name: Stringowner/name on GitHub.
profile: StringThe profile the jobs its labels match run in.
labels: Vec<String>The labels its runners register with.
paused: boolPaused repositories get no new runners; their running jobs finish.
held: Option<Hold>No runner starts for this repository before then, after its runners failed.
queued: Vec<QueuedJob>The repository’s queued jobs at the last poll, those of its other pools too.
runner_memory: Option<u64>What a new runner of it takes of the budget: None, its profile’s memory. Under measured admission, the
largest predicted peak of the queued jobs its labels match, since GitHub may give the runner any of them.
runner_cpu: Option<u64>What a new runner of it takes of the CPU budget, in millicores: None, its profile’s cpus. Under measured
admission, the largest predicted average CPU of its queued jobs.
waits: WaitsWhat its next job has waited for, and since when (ADR 0096), and whether a barrier has served it (ADR 0098).
usual: Option<Duration>The largest usual run time among the queued jobs its labels match, since GitHub may give a runner any of them;
None if any has no estimate, and then none of its jobs starts behind a barrier (ADR 0097).
warm: usizeHow many idle runners it keeps beyond its queued jobs, for jobs not queued yet (warm::target).