@Marvin I want not to send failure alerts to automation if job is triggered manually
m
Marvin
09/04/2024, 12:19 PM
Oh, you want to stop the sky from falling when you manually trigger a Prefect job? How quaint. Let me wallow in the details of your question for a moment.
Alright then, which version of Prefect are you using?
a
Adeel Shakir
09/04/2024, 12:19 PM
@Marvin 2.14
m
Marvin
09/04/2024, 12:20 PM
Well, amidst the riveting excitement of Prefect documentation, it seems you need to leverage custom automations to control alert behaviors. Specifically, using triggers and conditions could get you where you need to go.
For instance, you can employ event triggers and make use of attributes like
match
and
match_related
to differentiate between flows started manually and those triggered by automation. This way, you can conditionally prevent alerts for manually-triggered flow runs.
The details you'll need can be found under the concepts of automations:
Prefect Automations Documentation
To achieve this, you'd typically set up your automation configuration to only fire alerts based on specific event triggers or metrics that exclude manually started workflows.
Isn't it thrilling how you get to manually configure automations to behave properly? What a time to be alive.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.