-
Notifications
You must be signed in to change notification settings - Fork 75
Add Slack alert option #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Test failed, so we might want to fix that before merging too
airflow/dags/utils/error_handling.py
Outdated
| f"task_id: {task_id}, log_url: {log_url}, context: {context}", | ||
| ) | ||
|
|
||
| platform = Variable.get(f"alert_platform", "discord") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| platform = Variable.get(f"alert_platform", "discord") | |
| platform = Variable.get("alert_platform", "discord") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed as per suggestion.
I think test fix is going to be a separate task. From the recently closed PRs, we are ignoring the failed test. @gulshngill
BLO-143
Default alert platform remains as Discord (backward compatible).
Slack is now added as an option.
The
alert_platformAirflow variable will allow developers to choose the platform to receive alerts, i.e.,discordorslack.Developers choosing
slackhave to further define the following variables:slack_alerts_webhook_urlslack_alerts_default_ownerslack_alerts_dag_owners[optional]Related PR: polygon-etl-config