pub struct Profile {
pub image: Image,
pub cpus: u32,
pub memory: ByteSize,
pub slots: u32,
pub record_failures: bool,
pub min_memory: Option<ByteSize>,
pub max_memory: Option<ByteSize>,
pub max_slots: Option<u32>,
pub priced_as: Option<Sku>,
}Expand description
A runner image with its limits; every job of the profile gets one container with these limits.
Fields§
§image: ImageThe image its runners run: image_stage or image, exactly one of them.
cpus: u32CPUs per slot.
memory: ByteSizeMemory per slot; the container’s hard limit.
slots: u32The most jobs of this profile running at once.
record_failures: boolWhether a failed job’s runner is kept as a record, to open a shell in (runnerctl shell).
min_memory: Option<ByteSize>The least memory auto sizing lowers it to; None for no bound.
max_memory: Option<ByteSize>The most memory auto sizing raises it to; None for what the slice’s MemoryMax holds.
max_slots: Option<u32>The most slots auto sizing raises them to; None for as many as the slice’s MemoryMax holds.
priced_as: Option<Sku>The GitHub-hosted runner its jobs are priced at (ADR 0072); None for the daemon’s architecture’s 2-core
standard runner.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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