Airflow and Slack Integration

Author: Omid Vahdaty 3.10.2019

In this bloq I will show you by example how to sent notification to slack on Airflow job failures

  1. Get an API token from slack. create it here in this link: https://api.slack.com/custom-integrations/legacy-tokens. notice this method is deprecated 🙁
  2. Install on your airflow server the slack packages :

pip3 install ‘apache-airflow[slack]’

3. simple code example committed in our Github (one for successful event and one for failure):

Slack Airflow integration code example for successful job

Slack Airflow integration code example for failed job

——————————————————————————————————————————

I put a lot of thoughts into these blogs, so I could share the information in a clear and useful way. If you have any comments, thoughts, questions, or you need someone to consult with,

feel free to contact me via LinkedIn:

3 thoughts on “Airflow and Slack Integration”

Leave a Reply