Thread
#prefect-community
    Klemen Strojan

    Klemen Strojan

    10 months ago
    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
    Anna Geller

    Anna Geller

    10 months ago
    @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
    Klemen Strojan

    Klemen Strojan

    10 months ago
    Exactly what I was looking for - thank you!