The GitHub Actions job "Tests (AMD)" on airflow.git/fix/notifier-serialized-dag-template-env has succeeded. Run started by GitHub user GayathriSrividya (triggered by GayathriSrividya).
Head commit for run: d8fdac96135a8921c4aeaa5fc4405b9e7b23bc49 / Gayathri Srividya Rajavarapu <[email protected]> Fix AttributeError when notifier renders templates with SerializedDAG When 'airflow dags test' triggers a DAG callback that uses a notifier, the context's 'dag' key holds a SerializedDAG instance which does not have a get_template_env method. BaseNotifier.render_template_fields passes this dag to Templater.get_template_env, which unconditionally calls dag.get_template_env() — raising AttributeError. Guard the call with hasattr() so that a dag lacking get_template_env (such as SerializedDAG) silently falls back to SandboxedEnvironment. closes: #64649 Report URL: https://github.com/apache/airflow/actions/runs/26833957577 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
