pub struct DistributedTask {
pub id: TaskId,
pub name: String,
pub component: Box<dyn PipelineStep>,
pub input_shards: Vec<DataShard>,
pub dependencies: Vec<TaskId>,
pub resource_requirements: ResourceRequirements,
pub config: TaskConfig,
pub metadata: HashMap<String, String>,
}Expand description
Distributed task specification
Fields§
§id: TaskIdTask identifier
name: StringTask name
component: Box<dyn PipelineStep>Pipeline component to execute
input_shards: Vec<DataShard>Input data shards
dependencies: Vec<TaskId>Task dependencies
resource_requirements: ResourceRequirementsResource requirements
config: TaskConfigTask configuration
metadata: HashMap<String, String>Task metadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DistributedTask
impl !RefUnwindSafe for DistributedTask
impl Send for DistributedTask
impl Sync for DistributedTask
impl Unpin for DistributedTask
impl !UnwindSafe for DistributedTask
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
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>
Converts
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>
Converts
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