-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add Slack alert option #109
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_platform
Airflow variable will allow developers to choose the platform to receive alerts, i.e.,discord
orslack
.Developers choosing
slack
have to further define the following variables:slack_alerts_webhook_url
slack_alerts_default_owner
slack_alerts_dag_owners
[optional]Related PR: polygon-etl-config