Slack | Dagster Integrations
Back to integrations
Dagster + Slack

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
from dagster_slack import SlackResource
from dagster import EnvVar, op, job
import os

@op
def my_op(slack: SlackResource):
    slack.get_client().chat_postMessage(channel="#noise", text=":wave: hey there!")

@job(resource_defs={
    "slack": SlackResource(
        token=EnvVar("SLACK_TOKEN")
    )
})
def my_job():
    my_op()

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.