https://prefect.io logo
Title
d

Deceivious

03/17/2023, 12:17 PM
Is there any way to send a notification [automation], when 2 of the latest run of a single flow fails? In the documentation for automation I see
threshold
and
within
parameters on Automation API, but different flows may have different schedules hence the
within
parameter is not enough. ++ Making a automation for each flow with different
within
parameter value doesnt sound fun esp. when the rule is pretty simple.
w

Will Raphaelson

03/17/2023, 2:18 PM
Hi Bigya, thanks for this question. Youre correct that right now the threshold / within approach would be the closest thing we can get to that, but its a little blunt for what you’re trying to achieve. I am hoping to address this in the next month or so, basically allowing two events in any time window to trigger an automation, and/or allowing automations to fire only after retry.
b

Brad

03/21/2023, 1:28 AM
+1 to this request
(though it would be great to have something like >2 failures in a row)
w

Will Raphaelson

03/21/2023, 2:15 PM
thanks brad, I’m hoping to tackle this in the next few months
d

Deceivious

03/21/2023, 2:28 PM
or even % fail over total runs per provided rolling time window
😄