Short answer: because the automation is âproactiveâ and you created it after the last âaddresses.processedâ event, it immediately opens a âmissing expectationâ incident and keeps re-notifying while the expectation remains unmet. In Cloud today, unresolved proactive incidents are re-notified on a fixed cadence of about 4 hours, so youâll see it fire repeatedly until:
- a new âaddresses.processedâ event occurs (starting a fresh window),
- the expected âsales_margins_all_countries.processedâ event appears, or
- you pause/disable the automation.
Why this happens with your config
- posture: Proactive + after + expect + within=7200s means: âafter we see addresses.processed, we expect sales_margins_all_countries.processed within 2 hours; if not, trigger.â
- When you create the automation after the âafterâ event already happened, the system uses the most recent matching âafterâ event as the start of the window. Since youâre already beyond the 2-hour âwithinâ window, it fires right away.
- While the expectation remains unmet and no newer âafterâ event arrives, the platform keeps the incident open and re-notifies on its cadence (about every 4 hours).
Ways to avoid repeated notifications in this scenario
- Create/enable the automation before the next daily âaddresses.processedâ event so the window starts cleanly.
- Temporarily set posture to Reactive (or pause/disable the automation) until the next âaddresses.processedâ event occurs.
- If you only want a single notification per âafterâ occurrence, keep the automation disabled until the next âaddresses.processedâ, then enable it right after that event fires.
- Optionally, narrow who/what it applies to via for_each to reduce duplicate noise across resources; it wonât stop re-notify for a single overdue expectation, but it helps avoid fan-out if multiple resources are involved.
References
-
Event triggers and automations (Prefect 3)
If you share which action(s) your automation runs and whether you want only one notification per âafterâ or periodic reminders until recovery, I can suggest an exact config tweak or workflow change.