https://prefect.io logo
a

Andreas Tsangarides

10/06/2022, 8:35 AM
hi all! Any way to configure the slack notifier to give a notification only when the FLOW fails? The tasks in the flow have retry attempts, so would like only a notification when the whole flow fails (if all retry attempts have been exhausted for example or something else failed)
1
a

Anna Geller

10/06/2022, 9:26 AM
yup, for sure - try this: https://gist.github.com/anna-geller/2014180ee5eaec9ea54f4d3f5b98ca93 SlackTask is much easier and more configurable than slack_notifier
a

Andreas Tsangarides

10/06/2022, 9:29 AM
ah very nice! thanks Anna! so should I decorate the last task or is there a way to decorate/notify based on the flow result?
3 Views