pub struct TaskGroup {Show 22 fields
pub prevent_reschedule_on_lost: Option<bool>,
pub name: Option<String>,
pub affinities: Vec<Affinity>,
pub tasks: Vec<Task>,
pub disconnect: Option<DisconnectStrategy>,
pub ephemeral_disk: Option<EphemeralDisk>,
pub meta: HashMap<String, String>,
pub stop_after_client_disconnect: Option<TimeDelta>,
pub scaling: Option<ScalingPolicy>,
pub count: Option<i64>,
pub constraints: Vec<Constraint>,
pub restart_policy: Option<RestartPolicy>,
pub reschedule_policy: Option<ReschedulePolicy>,
pub update: Option<UpdateStrategy>,
pub shutdown_delay: Option<TimeDelta>,
pub max_client_disconnect: Option<TimeDelta>,
pub consul: Option<Consul>,
pub spreads: Vec<Spread>,
pub volumes: HashMap<String, VolumeRequest>,
pub migrate: Option<MigrateStrategy>,
pub networks: Vec<NetworkResource>,
pub services: Vec<Service>,
}
Expand description
TaskGroup is the unit of scheduling.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§prevent_reschedule_on_lost: Option<bool>
To be deprecated after 1.8.0 infavour of Disconnect.Replace
name: Option<String>
§affinities: Vec<Affinity>
§tasks: Vec<Task>
§disconnect: Option<DisconnectStrategy>
§ephemeral_disk: Option<EphemeralDisk>
§meta: HashMap<String, String>
§stop_after_client_disconnect: Option<TimeDelta>
Deprecated: StopAfterClientDisconnect is deprecated in Nomad 1.8. Use Disconnect.StopOnClientAfter instead.
scaling: Option<ScalingPolicy>
§count: Option<i64>
§constraints: Vec<Constraint>
§restart_policy: Option<RestartPolicy>
§reschedule_policy: Option<ReschedulePolicy>
§update: Option<UpdateStrategy>
§shutdown_delay: Option<TimeDelta>
§max_client_disconnect: Option<TimeDelta>
To be deprecated after 1.8.0 infavour of Disconnect.LostAfter
consul: Option<Consul>
§spreads: Vec<Spread>
§volumes: HashMap<String, VolumeRequest>
§migrate: Option<MigrateStrategy>
§networks: Vec<NetworkResource>
§services: Vec<Service>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskGroup
impl<'de> Deserialize<'de> for TaskGroup
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
impl StructuralPartialEq for TaskGroup
Auto Trait Implementations§
impl Freeze for TaskGroup
impl RefUnwindSafe for TaskGroup
impl Send for TaskGroup
impl Sync for TaskGroup
impl Unpin for TaskGroup
impl UnwindSafe for TaskGroup
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