Skip to content

Decouple SMTP Provider settings from the Airflow Core #37703

Description

@Taragolis

Body

By mistake we add coupling between SMTP provider and core in #36226.
Discussion for the reference: #37701 (comment)

Provider Changes

  • Move configurations into the provider configurations and get this settings from there

Airflow Core Changes

  • Deprecate Remove SMTP_DEFAULT_TEMPLATED_SUBJECT and SMTP_DEFAULT_TEMPLATED_HTML_CONTENT_PATH into the airflow/settings.py
    - E.g. on access raise a deprecation warning with suggestion to upgrade to the new version of the SMTP Provider
    - E.g. on set from airflow_local_settings.py raise a deprecation warning with suggestion to upgrade to the new version of the SMTP Provider and use configurations instead

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions