Adeel Shakir
10/15/2024, 11:00 AMMarvin
10/15/2024, 11:00 AMmatch_related
conditions, which you can use to filter only specific deployment IDs related to scheduled runs.
3. Event Matching: Use event matching conditions to ensure that alerts are sent only when the events are related to runs from automated deployments and not manual executions. You can achieve this by ensuring that the match
and match_related
fields specifically target events stemming from scheduled deployments.
You can find more detailed information on creating automations and using event matching in Prefect 2.20 in their documentation:
- Automations: Prefect Automations
- Scheduling: Prefect Schedules
Following these steps should allow you to send alerts for scheduled runs only, excluding any manually triggered runs. If you have further questions, feel free to ask!