pub struct ExecutionSpec {
pub parallelism: Option<i32>,
pub task_count: Option<i32>,
pub template: Option<TaskTemplateSpec>,
}
Expand description
ExecutionSpec describes how the execution will look.
This type is not used in any activity, and only used as part of another schema.
Fields§
§parallelism: Option<i32>
Optional. Specifies the maximum desired number of tasks the execution should run at given time. Must be <= task_count. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed, i.e. when the work left to do is less than max parallelism.
task_count: Option<i32>
Optional. Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. Defaults to 1.
template: Option<TaskTemplateSpec>
Optional. The template used to create tasks for this execution.
Trait Implementations§
Source§impl Clone for ExecutionSpec
impl Clone for ExecutionSpec
Source§fn clone(&self) -> ExecutionSpec
fn clone(&self) -> ExecutionSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExecutionSpec
impl Debug for ExecutionSpec
Source§impl Default for ExecutionSpec
impl Default for ExecutionSpec
Source§fn default() -> ExecutionSpec
fn default() -> ExecutionSpec
Source§impl<'de> Deserialize<'de> for ExecutionSpec
impl<'de> Deserialize<'de> for ExecutionSpec
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>,
Source§impl Serialize for ExecutionSpec
impl Serialize for ExecutionSpec
impl Part for ExecutionSpec
Auto Trait Implementations§
impl Freeze for ExecutionSpec
impl RefUnwindSafe for ExecutionSpec
impl Send for ExecutionSpec
impl Sync for ExecutionSpec
impl Unpin for ExecutionSpec
impl UnwindSafe for ExecutionSpec
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<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