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