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
- 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 🙁
- 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”
Thank you for nice explantion,But how would i get the token
https://api.slack.com/legacy/custom-integrations/legacy-tokens
unforutenly – legacy token will not be supported after May