Garret Cook

    Garret Cook

    1 year ago
    I have a flow scheduled to run every 15 minutes. Occasionally the run is delayed, and in that case, I’d like Prefect to skip missed runs of this particular flow (rather than running missed runs trying to catch up). Is there a built in way to accomplish this?
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Garret Cook! Unfortunately this only exists in Prefect Cloud through Automations where you can cancel late Flow runs after a certain amount of time.
    Garret Cook

    Garret Cook

    1 year ago
    Well, I have prefect cloud, so that is an option, I suppose
    Well, I have prefect cloud, so that is an option, I suppose
    What about having a task that runs and checks the current time against the scheduled run time and aborts the run if > XX minutes?
    Are those variables avaliable to a flow/task?
    Kevin Kho

    Kevin Kho

    1 year ago
    I think you can get them through the context . If you pull the scheduled_start_time from there, you can use it.
    Garret Cook

    Garret Cook

    1 year ago
    nice, thank you for your reply