Hey all - Can I mark a certain flow as skipped if ...
# ask-community
k
Hey all - Can I mark a certain flow as skipped if it takes longer than some predetermined time? For example, a flow takes 3 min on average, but sometimes it hangs in a running state for a long time before it fails. If a flow takes more than 5 min I want to mark it as skipped. Cheers
a
@Klemen Strojan you can cancel a flow run if it doesn’t finish within 5 minutes using Automations: https://docs.prefect.io/orchestration/concepts/automations.html#automations
k
Exactly what I was looking for - thank you!
👍 1