apache / apache/airflow

TRAINING ISSUE! Add extra CC: to the emails sent by Airflow

Open
#7,782 0 comments 0 reactions 0 assignees View on GitHub
pinned
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

## Description

We need to have a way to add extra CC: to the emails sent by Airflow

## Use case / motivation

:warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning:

This is a test issue that is used in Contributor's documentation to show an example issue for the first time contributors

**Please do not merge the change even if you implement it!**

The example workflow that uses this issue is described in
https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contribution-workflow-example

:warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning::warning:

We need to have a way to add extra CC: to the emails sent by Airflow.
1. You can see the information about how to configure email here email: [https://airflow.readthedocs.io/en/latest/concepts.html#email-configuration]
1. Here is the class you should modify: [airflow/utils/email.py](https://github.com/apache/airflow/blob/master/airflow/utils/email.py)
1. Tests for email class are in: [tests/utils/test_email.py](https://github.com/apache/airflow/blob/master/tests/utils/test_email.py)
1. Run the tests in Local Virtualenv: [LOCAL_VIRTUALENV.rst](https://github.com/apache/airflow/blob/master/LOCAL_VIRTUALENV.rst)
1. Run the tests in Breeze: [BREEZE.rst](https://github.com/apache/airflow/blob/master/BREEZE.rst)
1. Make a DRAFT PR as described in https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#contributions
1. Run airflow webserver and scheduler and configure it to send emails and connect to a real SMTP server and test if the email is sent with the CC:'d account

Contributor guide

Open the contributing guide

Research direction

Start with airflow/utils/email.py and the related tests in tests/utils/test_email.py, then review the email configuration documentation linked in the issue. Run the email tests using the local virtualenv or Breeze instructions. Done means the configured extra CC recipients are included in sent emails and the behavior is covered by tests; this issue is explicitly a training example and says not to merge the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.