Hello community! I am trying to integrate slack notifications into my workflow. Is there a good way to post to Slack if all tasks are successful? Here is my state_handler:
I would like to avoid sending a success message for each task, and instead send one only if every task ran successfully. Thanks!
b
Ben Muller
07/20/2021, 8:29 PM
If you use cloud, there is an inbuilt "automations" in the UI so you don't have to write any code. It's awesome ☺️
t
Thomas Nakamoto
07/20/2021, 8:31 PM
I'm just using core at the moment, cloud would be great.
k
Kevin Kho
07/20/2021, 8:31 PM
Hey @Thomas Nakamoto, I assume you have tasks that can Fail without the flow Failing, so you want a notification only if everything succeeds? Or do you just want a way to know if the Flow succeeds?
t
Thomas Nakamoto
07/20/2021, 8:34 PM
Hi @Kevin Kho just a way to know the Flow succeeded. I have a workflow that will run hourly and I would like a confirmation that it ran.
k
Kevin Kho
07/20/2021, 8:37 PM
Oh. You should just use the SlackTask or Slack Notifier at the end on your Flow. The SlackTask is more configurable as I think the Slack Notifier requires you store the Secret on Prefect Cloud
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.