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