Docs
https://prefecthq.github.io/prefect-slack/
Code
Examples
from prefect import flow
from prefect_slack import SlackWebhook
from prefect_slack.messages import send_incoming_webhook_message
@flow
def example_send_message_flow():
# Run other tasks and subflows here
webhook_url = "https://hooks.slack.com/XXX"
send_incoming_webhook_message(
slack_webhook=SlackWebhook(
url=webhook_url
),
text="Warehouse loading flow completed :sparkles:"
)
example_send_message_flow()