-
-
Save Kamparia/98b9994a76bc174cec5c2e33003aef9c to your computer and use it in GitHub Desktop.
Task 4: Send Slack notifications to team members.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Task 4: Send Slack notifications to Slack Channel. | |
task_four = SlackWebhookOperator( | |
task_id = 'send_slack_notification', | |
http_conn_id = 'slack_conn', | |
webhook_token = Variable.get("SLACK_API_TOKEN"), | |
message = "New earthquake events was successfully harvested.", | |
username = 'airflow' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment