Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Task 4: Send Slack notifications to team members.
# 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