pub struct DeregisterOptions {
pub purge: bool,
pub global: bool,
pub eval_priority: i64,
pub no_shutdown_delay: bool,
}Expand description
DeregisterOptions is used to pass through job deregistration parameters
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§purge: boolIf Purge is set to true, the job is deregistered and purged from the system versus still being queryable and eventually GC’ed from the system. Most callers should not specify purge.
global: boolIf Global is set to true, all regions of a multiregion job will be stopped.
eval_priority: i64EvalPriority is an optional priority to use on any evaluation created as a result on this job deregistration. This value must be between 1-100 inclusively, where a larger value corresponds to a higher priority. This is useful when an operator wishes to push through a job deregistration in busy clusters with a large evaluation backlog.
no_shutdown_delay: boolNoShutdownDelay, if set to true, will override the group and task shutdown_delay configuration and ignore the delay for any allocations stopped as a result of this Deregister call.
Implementations§
Source§impl DeregisterOptions
impl DeregisterOptions
pub fn builder() -> DeregisterOptionsBuilder
Trait Implementations§
Source§impl Clone for DeregisterOptions
impl Clone for DeregisterOptions
Source§fn clone(&self) -> DeregisterOptions
fn clone(&self) -> DeregisterOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more