Hey, is there any way to use mode definitions to, ...
# announcements
r
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
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
That github link was really useful Camera, I'll definitely be using that approach while an alternative is implemented. Thanks a lot! 🙂