hello! could anyone point me in the direction of u...
# ask-community
j
hello! could anyone point me in the direction of using
dagster-slack
on an asset/job group? I can’t seem to find any good examples. all the examples here have to use ops https://docs.dagster.io/_apidocs/libraries/dagster-slack
t
Hi! What would you like to do with Slack? If you want to know when jobs fail or statuses change, the
make_slack_on_*
sensor functions will work agnostic if you're using assets or ops If you'd like to trigger a Slack message during an asset materialization step, you can access the
SlackResource
in an asset definition the same way you would in an op definition.
j
so previously, our ops (now assets) used to utilize the dagster_slack decorator
dagster_slack.slack_on_failure
to notify us of any issues that happened. I am wondering what would be the equivalent usage patterns for an asset/asset_job
t
Hmm, feel free to correct me if this use case doesn't work for you: For your asset jobs, would you be able to set the list of
monitored_jobs
in
make_slack_on_run_failure_sensor
? And if you're using freshness policies, you could use
make_slack_on_freshness_policy_status_change_sensor
instead on the asset selection you'd like to monitor