I used prefect2 Suppose you have a FLOW that is sc...
# ask-community
k
I used prefect2 Suppose you have a FLOW that is scheduled every 5 minutes. from prefect import flow,task
Copy code
@task
def my_favorite_function():
    raise ValueError("This flow immediately fails")

@task
def one_return():
    return 1

@task
def tow_return():
    return 2

@flow
def run_flow():
    my_favorite_function()
    one_return()
    tow_return()
I want to PEND or skip an upcoming schedule. I read the documentation but couldn't figure out how to implement the specifics.
c
I don’t know quite exactly the answer to your question, but I think this article tackles the general idea: https://discourse.prefect.io/t/is-it-possible-to-skip-a-new-scheduled-flow-run-if-a-previous-flow-run-of-the-same-flow-is-still-in-progress/492/2
👀 1