diff --git a/src/cmd/src/frontend.rs b/src/cmd/src/frontend.rs index 0cb0cb2bd6..e6f5459046 100644 --- a/src/cmd/src/frontend.rs +++ b/src/cmd/src/frontend.rs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::time::Duration; + use clap::Parser; use common_telemetry::logging; use frontend::frontend::FrontendOptions; @@ -85,6 +87,8 @@ pub struct StartCommand { #[clap(long)] http_addr: Option, #[clap(long)] + http_timeout: Option, + #[clap(long)] grpc_addr: Option, #[clap(long)] mysql_addr: Option, @@ -138,6 +142,10 @@ impl StartCommand { opts.http.addr = addr.clone() } + if let Some(http_timeout) = self.http_timeout { + opts.http.timeout = Duration::from_secs(http_timeout) + } + if let Some(disable_dashboard) = self.disable_dashboard { opts.http.disable_dashboard = disable_dashboard; }