https://prefect.io logo
#prefect-server
Title
# prefect-server
m

Maximilian Rausch

01/20/2022, 3:26 AM
I can't find any documentation for what happens with late/missed runs. Say for example a flow is scheduled for 1x per day at 9am and the system crashes. Eventually I get the machine and agent back online 3 days later. What happens to all the previously scheduled runs?
k

Kevin Kho

01/20/2022, 3:28 AM
The agent pulls all late runs and runs them by default when it comes back on.
m

Maximilian Rausch

01/20/2022, 3:11 PM
Is there any config to only run the “latest” @Kevin Kho thank you.
k

Kevin Kho

01/20/2022, 3:29 PM
For Prefect Cloud we have Automations that let you cancel flows if they are late by X amount of time.
For Prefect Server, you have to do something more like this where the run starts and then immediately cancels if it finds other copies of the flow already running
m

Maximilian Rausch

01/20/2022, 5:12 PM
Thanks I'll take a look.