https://prefect.io logo
Title
b

Ben Muller

05/10/2022, 9:36 AM
Hey Prefect, long time! I'm getting some buggy flows stuck running for 24 hrs + that should be done in 10 minutes approx. Is there any way I can set a maximum run time for my flows? I use an ECSRun config. Cheers.
k

Kevin Kho

05/10/2022, 10:39 AM
Yeah use Automations to cancel the Flow after a maximum amount of time. You can find them in the UI
:upvote: 1
b

Ben Muller

05/10/2022, 10:44 AM
How exactly? I looked there but it would be a "when any run from any flow changes to running then do something", but I see no time based stuff?
k

Kevin Kho

05/10/2022, 10:46 AM
The “does not finish” will take a time
b

Ben Muller

05/10/2022, 10:48 AM
Ah great thanks
Ah you can't do it for all flows. Only specific ones
k

Kevin Kho

05/10/2022, 10:58 AM
Yeah unfortunately not