Angelika Tarnawa

09/04/2023, 7:33 AM
Hi all! I'm wondering if there is a way to create custom automation in Prefect 1. For example
When any run from my-flow does not finish after 600 seconds, then set state as failed

Bianca Hoch

09/05/2023, 5:00 PM
Hi Angelika, this pattern can be achieved using automations for Cloud 2.0. You can define an SLA, and if the flow run does not abide by it, you can cancel the run in response.
I believe you could achieve this in 1.0 as well (here's a link to the legacy docs)