pub struct TaskExecutionConstraints {
pub container: Option<String>,
pub cpu: f64,
pub memory: i64,
pub gpu: Vec<String>,
pub fpga: Vec<String>,
pub disks: IndexMap<String, i64>,
}Expand description
Represents constraints applied to a task’s execution.
Fields§
§container: Option<String>The container the task will run in.
A value of None indicates the task will run on the host.
cpu: f64The allocated number of CPUs; must be greater than 0.
memory: i64The allocated memory in bytes; must be greater than 0.
gpu: Vec<String>A list with one specification per allocated GPU.
The specification is execution engine-specific.
If no GPUs were allocated, then the value must be an empty list.
fpga: Vec<String>A list with one specification per allocated FPGA.
The specification is execution engine-specific.
If no FPGAs were allocated, then the value must be an empty list.
disks: IndexMap<String, i64>A map with one entry for each disk mount point.
The key is the mount point and the value is the initial amount of disk space allocated, in bytes.
The execution engine must, at a minimum, provide one entry for each disk mount point requested, but may provide more.
The amount of disk space available for a given mount point may increase during the lifetime of the task (e.g., autoscaling volumes provided by some cloud services).
Auto Trait Implementations§
impl Freeze for TaskExecutionConstraints
impl RefUnwindSafe for TaskExecutionConstraints
impl Send for TaskExecutionConstraints
impl Sync for TaskExecutionConstraints
impl Unpin for TaskExecutionConstraints
impl UnwindSafe for TaskExecutionConstraints
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more