The GitHub Actions job "Tests (AMD)" on 
airflow.git/restore-pluggable-email-backend has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
42fb3a944e3705d4e9a4d5ac30b0468040794186 / Jarek Potiuk <[email protected]>
Restore pluggable email backend for task failure and retry alerts

Since #57354, task email_on_failure / email_on_retry alerts were routed
unconditionally through SmtpNotifier, silently ignoring the
[email] email_backend configuration. Custom backends (SES, SendGrid,
org-internal) stopped delivering failure/retry emails even though the
deprecated email_on_* parameters still worked.

This restores pluggability while keeping the single-notifier design that
#57354 introduced:

- New [email] email_notifier option selects the BaseNotifier used for
  failure/retry alerts (default: SmtpNotifier). Any BaseNotifier whose
  constructor accepts to / from_email / subject / html_content can be used.
- A legacy [email] email_backend (non-default) is transparently wrapped in
  a new LegacyEmailBackendNotifier adapter in common.compat, so existing
  SES/SendGrid/custom email_backend setups keep working without change.
- Both the worker task-runner path and the DAG-processor callback path
  resolve the notifier through the same _send_error_email_notification
  function, so the selected backend is used consistently regardless of how
  the task failed.

The adapter loads the backend lazily from config at notify time, keeping
the Task SDK free of a static dependency on airflow.utils.email.

Adds LegacyEmailBackendNotifier to apache-airflow-providers-common-compat.

Report URL: https://github.com/apache/airflow/actions/runs/29344896781

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to