Back to integrations
Dagster + Slack

Dagster Integration:
Dagster + Slack

Up your notification game and keep stakeholders in the loop.

About this integration

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

import dagster as dg
from dagster_slack import SlackResource


@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.