Dagster & Slack
This library provides an integration with Slack to support posting messages in your company's Slack workspace.
Installation
pip install dagster-slack
Example
# Read the docs on Resources to learn more: https://docs.dagster.io/deployment/resources
from dagster_slack import SlackResource
import dagster as dg
@dg.asset
def slack_message(slack: SlackResource):
slack.get_client().chat_postMessage(channel="#noise", text=":wave: hey there!")
defs = dg.Definitions(
assets=[slack_message],
resources={"slack": SlackResource(token=dg.EnvVar("SLACK_TOKEN"))},
)
About Slack
The Slack messaging app provides chat, video and voice communication tools and is used extensively across companies and communities. The Dagster slack community can be found at dagster.io/slack.