Repository navigation
Fix task error email notification sender fallback to connection and provider defaults - #72745
olayiwola-gbenga wants to merge 1 commit into
Conversation
…rovider defaults In Task SDK, _send_error_email_notification passed a hardcoded fallback string 'airflow@airflow' when [email] from_email was not configured. This bypassed provider-specific defaults (such as SendGrid's SENDGRID_MAIL_FROM env var or SES sender verification) when using _LegacyEmailBackendNotifier, and prevented SmtpNotifier from reaching its connection-extra fallback branch. Default from_email extraction to None so backends and notifiers can resolve their own sender defaults.
c95a444 to
4a37d3b
Compare
|
Closing this. |
|
I understand your point and the PR can be reworked, but why it was just closed? |
|
Thanks for the review @kaxil, and thanks @VladaZakharova for following up. On the business need: in Airflow 2 ( @kaxil makes a good point about Since the scope of our ticket is specifically to fix legacy/custom @kaxil could we reopen this PR so I can push that change? |
|
Happy to reopen it @olayiwola-gbenga . But do ensure you follow PR guidelines, and show enough evidence of testing with before/after. The current influx of PRs is not maintainable from the PR review standpoint, so any PRs that don't provide enough details, or are clearly AI slop -- will be closed without any further explanation. |
In Task SDK, _send_error_email_notification passed a hardcoded fallback string 'airflow@airflow' when [email] from_email was not configured. This bypassed provider-specific defaults (such as SendGrid's SENDGRID_MAIL_FROM env var or SES sender verification) when using _LegacyEmailBackendNotifier, and prevented SmtpNotifier from reaching its connection-extra fallback branch.
Default from_email extraction to None so backends and notifiers can resolve their own sender defaults.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.