dylanschw opened a new pull request, #62090: URL: https://github.com/apache/airflow/pull/62090
Closes #58205 ## What Update Amazon Batch and ECS executors to use the Task SDK BaseHook import path. (Update Amazon Batch and ECS executors to use the Task SDK `BaseHook` import path instead of the deprecated `airflow.hooks.base.BaseHook`.) ## Why Avoid deprecated BaseHook import usage and align these executors with the Airflow Task SDK hook location. The previous import path is deprecated. This change aligns the Amazon executors with the current Task SDK structure and removes usage of deprecated core hook imports. ## Tests Verified by running Amazon provider executor unit tests: AIRFLOW__SECRETS__BACKEND="airflow.secrets.environment_variables.EnvironmentVariablesBackend" \ AIRFLOW_CONN_SSH_DEFAULT='ssh://airflowtest:[email protected]:22?__extra__={"look_for_keys":false,"allow_agent":false,"allow_host_key_change":true}' \ PYTHONPATH="$PWD/airflow-core/src:$PWD/task-sdk/src:$PWD/devel-common/src:$PWD/dev:$PWD:$PROVIDERS_SRC" \ .venv-breeze/bin/pytest -q providers/amazon/tests -k "batch_executor or ecs_executor" All relevant Batch and ECS executor tests pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
