Pipeline Alerts and Notifications for Multiple Microsoft Teams Channels

Example DAG demonstrating how to implement alerting and notifications for multiple Microsoft Teams channels.



Last Updated: Nov. 15, 2021

Run this DAG

1. Install the Astronomer CLI:Skip if you already have our CLI

2. Download the repository:

3. Navigate to where the repository was cloned and start the DAG:

Airflow Callbacks

Showcasing several ways to implement Airflow callbacks and notifications.


Monitoring tasks and DAGs at scale can be cumbersome. Sometimes you'd like to be notified of certain events, and not others. These DAGs cover several methods of implementing custom e-mail, Slack, and Microsoft Teams notifications so you can be confident you aren't missing critical events that may require immediate attention.

Note: The MS Teams Hook and MS Teams Operator used in this repo were forked from mendhak/Airflow-MS-Teams-Operator

Slack Callback Examples

Example Callbacks

Getting Started


To implement notifications via Slack, add this to your requirements.txt:


To implement notifications via Slack or Microsoft Teams, add this to your requirements.txt:



In order to run these demos on your localhost, be sure to install:

Executing demos

Clone this repository, then navigate to the airflow-callbacks directory and start your local Airflow instance:

astro dev start

In your browser, navigate to http://localhost:8080/

  • Username: admin

  • Password: admin

Setting up Slack/Teams Connections

In order to receive callback notifications, you must also create your webhooks and set up your connections in the Airflow UI. follow the instructions found in the Appendix section of the accompanying slide deck.

Additional Resources