From 45cae656de4c5631f8db945f46df06885d452fe5 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 12 Jul 2021 14:44:54 -0700 Subject: [PATCH] Native client respects `--concurrent`. Now the native client recognizes `--concurrent` as a condition that forces `--no-pantsd`. Fixes #12321 [ci skip-build-wheels] --- src/rust/engine/client/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rust/engine/client/src/main.rs b/src/rust/engine/client/src/main.rs index 83b41545f66..e310dc12a00 100644 --- a/src/rust/engine/client/src/main.rs +++ b/src/rust/engine/client/src/main.rs @@ -64,6 +64,11 @@ async fn execute(start: SystemTime) -> Result { )); } + let concurrent = options_parser.parse_bool(&option_id!("concurrent"), false)?; + if concurrent.value { + return Err("Pantsd is being turned off since --concurrent is true.".to_owned()); + } + let level_option = option_id!(-'l', "level"); let log_level_option_value = options_parser.parse_string(&level_option, PythonLogLevel::Info.as_ref())?;