https://dagster.io/ logo
r

Rubén Lopez Lozoya

02/16/2021, 6:41 PM
Hey, is there any way to use mode definitions to, for example, set the value of a variable that holds the slack channel to which the hook failure post messages? If this is not appropiate, how would you guys do that? Or even to use mode defs so that the hook failure is only active in one of the modes (e.g production mode)
c

Cameron Gallivan

02/16/2021, 7:23 PM
Not too familiar with the slack integration but that sounds like something that’d be easiest to implement with a
@resource
? Depending on the mode the resource the solid is passed would/wouldn’t post to the slack channel. Or just return different values for the channel and not post it if it’s set to
None
Something similar to here but with a resource for each mode: https://github.com/dagster-io/dagster/discussions/3213
r

Rubén Lopez Lozoya

02/16/2021, 7:36 PM
That github link was really useful Camera, I'll definitely be using that approach while an alternative is implemented. Thanks a lot! 🙂