Skip to content

Commit

Permalink
update doc and do not make graceful_shutdown_duration visible in conf…
Browse files Browse the repository at this point in the history
…ig args
  • Loading branch information
DominicBurkart committed May 26, 2023
1 parent c20100c commit 881f141
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/config/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ pub struct ConfigBuilder {
#[serde(default)]
pub secret: IndexMap<ComponentKey, SecretBackends>,

/// Set the duration in seconds to wait for graceful shutdown after SIGINT or SIGTERM are received.
/// The duration in seconds to wait for graceful shutdown after SIGINT or SIGTERM are received.
/// After the duration has passed, Vector will force shutdown. Default value is 60 seconds. If set
/// to -1, Vector will never force shutdown.
/// to -1, Vector will never force shutdown. This value can be set using a
/// [cli arg](crate::cli::RootOpts::graceful_shutdown_duration).
#[serde(default, skip)]
#[doc(hidden)]
pub graceful_shutdown_duration: i64,
}

Expand Down

0 comments on commit 881f141

Please sign in to comment.