jfmlima opened a new pull request, #66357: URL: https://github.com/apache/airflow/pull/66357
`TaskHandlerWithCustomFormatter` fails to import on Airflow 3.2.x because it references the private function `_render_template_to_string` from `airflow.utils.helpers`, which was removed in #54715. This causes an `ImportError` at startup for any deployment using a custom logging config that references this handler: ``` from airflow.utils.helpers import _render_template_to_string, parse_template_string ImportError: cannot import name '_render_template_to_string' from 'airflow.utils.helpers' ``` Uses the public `render_template_to_string` from `airflow.sdk.definitions.context` (where #54715 moved it) instead of the removed private function. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Anthropic) Generated-by: Claude Code following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- * Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. -- 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]
