Hello everyone...Question regarding `dagster_slack...
# announcements
j
Hello everyone...Question regarding
dagster_slack
library. My company is still very much on
webhooks
and there's a lot of hoops to jump through to get bots approved. Is there any undocumented override feature in the
dagster_slack
lib for webhooks? Or perhaps an older slack implementation I can strip off and implement myself?
n
hey Jason, I don’t think there is, but if you look at the implementation of the
slack_resource
it’s just exposing a Slack
WebClient
via Dagster’s resource system; you might want to try something similar for the webhooks APIs
let me know if you put something together, would be happy to take a look at a PR!
j
Cool! Thanks
Quick question - I was just testing a setup with
success_hook
and
failure_hook
but I couldn't get the
failure_hook
to work. The pipeline looks like
Copy code
@slack_message_on_success
@slack_message_on_failure
@pipeline
def test_pipeline():
    a()
    b()
And the solids....
Copy code
@solid
def a(_):
    pass

@solid
def b(_):
    raise Exception()
The hooks just have a
context.log
in them for testing