pub struct Repository {
pub name: String,
pub profile: String,
pub labels: Vec<String>,
pub paused: bool,
pub held_until: Option<SystemTime>,
pub queued: Vec<QueuedJob>,
pub runner_memory: Option<u64>,
pub runner_cpu: Option<u64>,
pub cpu_waiting_since: Option<SystemTime>,
}Expand description
A repository as the planner sees it.
Fields§
§name: Stringowner/name on GitHub.
profile: StringThe profile its jobs run in.
labels: Vec<String>The labels its runners register with.
paused: boolPaused repositories get no new runners; their running jobs finish.
held_until: Option<SystemTime>No runner starts for this repository before then, after runners failed to take a job.
queued: Vec<QueuedJob>Its queued jobs at the last poll.
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 its queued jobs, 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.
cpu_waiting_since: Option<SystemTime>Since when its next job waits for CPU that a slot and memory have room for.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnsafeUnpin for Repository
impl UnwindSafe for Repository
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
Mutably borrows from an owned value. Read more