seanghaeli opened a new pull request, #66496: URL: https://github.com/apache/airflow/pull/66496
## Summary Add Jinja template rendering support for async deadline callbacks running in the triggerer. Uses Airflow's standard `render_template()` (via `BaseTrigger` → `Templater`) rather than raw Jinja, and correctly skips rendering for Notifiers which handle their own template fields. Builds on the simple context introduced in #55241, with a clear path toward full Execution API context fetching documented as a follow-up. ## Changes - Add template rendering in `CallbackTrigger.run()` using inherited `render_template()` - Add `_is_notifier_class()` duck-typing helper to skip double-rendering for Notifiers - Remove unnecessary `selectinload(Deadline.deadline_alert)` from scheduler query - Add comprehensive tests: template rendering, nested rendering, notifier handling, serialization regression - Update TODOs documenting the Execution API path forward ## Related - Follows #55241 (triggerer callback context) - Follows #55068 (triggerer API access) - Tracked on Asana AIP-86 Deadlines board ^ Add meaningful description above Read the [Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst) for more information. In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed. In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html). In case of backwards incompatible changes please leave a note in a newsfragment/[PR_NUMBER].significant.rst file. -- 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]
