From 431d28b91fea8dfcb46c2a8a419667a7cd747a50 Mon Sep 17 00:00:00 2001 From: Malte Sander Date: Wed, 15 Nov 2023 12:28:40 +0100 Subject: [PATCH] remove post shutdown hook --- rust/operator-binary/src/airflow_controller.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/rust/operator-binary/src/airflow_controller.rs b/rust/operator-binary/src/airflow_controller.rs index e0ed61aa..d0786b55 100644 --- a/rust/operator-binary/src/airflow_controller.rs +++ b/rust/operator-binary/src/airflow_controller.rs @@ -1013,21 +1013,8 @@ fn build_executor_template_config_map( .add_volume_mount(LOG_CONFIG_VOLUME_NAME, LOG_CONFIG_DIR) .add_volume_mount(LOG_VOLUME_NAME, STACKABLE_LOG_DIR); - if config.logging.enable_vector_agent { - airflow_container.add_env_var( - "_STACKABLE_POST_HOOK", - [ - // Wait for Vector to gather the logs. - "sleep 10", - &create_vector_shutdown_file_command(STACKABLE_LOG_DIR), - ] - .join("; "), - ); - } - pb.add_container(airflow_container.build()); pb.add_volumes(airflow.volumes()); - pb.add_volumes(controller_commons::create_volumes( &rolegroup_ref.object_name(), config.logging.containers.get(&Container::Airflow),