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