cityofaustin / atd-data-tech

Austin Transportation Data & Technology Services
18 stars 2 forks source link

Improve Airflow Slack notifications #20008

Open mddilley opened 2 days ago

mddilley commented 2 days ago

We talked about improving the Airflow Slack notification behavior in our retro recently - What Could Be Improved.

Pain points:

Ideas:

mddilley commented 1 day ago

@mddilley Break out ideas into separate issue and make this one into adding the schedule to the Slack messages https://github.com/cityofaustin/atd-airflow/blob/production/dags/utils/slack_operator.py

mddilley commented 1 day ago

@Charlie-Henry could you check this out and add any ideas you have to make Slack alerts better? We agreed to start with adding the cron schedule to the messages and then move to other ideas that would take more work.

Charlie-Henry commented 19 hours ago

Maybe there's a way to configure some sort of timeout for airflow slack alerts? Like if we've already sent a slack message for a DAG in the past 3 hours we don't need to send an alert again?

Maybe an easy solution for "critical" DAGs is setting up a separate slack channel atd-airflow-critical or something and send those alerts there?