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 slack_resource
from dagster import op, job
import os
@op(required_resource_keys={'slack'})
def my_op(context):
context.resources.slack.chat_postMessage(channel='#noise', text=':wave: hey there!')
@job(resource_defs={
'slack': slack_resource.configured({
'token': os.environ['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.