https://prefect.io logo
#prefect-community
Title
# prefect-community
k

kent

01/12/2023, 8:13 AM
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

Christopher Boyd

01/12/2023, 3:47 PM
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
3 Views