https://prefect.io logo
Title
j

Joseph Thickpenny Ryan

04/20/2023, 4:50 PM
When building a flow of flows in Prefect 2, does anyone know how you might suppress notifications sent via
on_completion
and
on_failure
that would be send via the subflows? (or if it's possible at all?) There are some cases where the subflow is itself useful, but we've incorporated it into a flow of flows as well so we would want notifications from both places but not in both situations
b

Bianca Hoch

04/20/2023, 5:30 PM
Hey Joseph, I'm not sure if you'd be able to do that in the UI, but you may be able to implement some logic that determines whether or not to call a notification block from your flow code.
👍 1