airflow, AWS, GCP

Airflow and Slack Integration

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

1 thought on “Airflow and Slack Integration”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s