Thread
#prefect-community
    Andrew Hah

    Andrew Hah

    8 months ago
    Hi all, If I have a flow with, say, 10 tasks that execute sequentially, is there an easy way to start that flow at an arbitrary task (assuming the tasks before it have been completed)?
    Anna Geller

    Anna Geller

    8 months ago
    In theory you can do that using Restarts. But in practice, the easiest and most practical way would be to just comment out the tasks you don’t want to run and start a new flow run locally. But if you can’t do a new local flow run, the screenshots show how you could do that with restarts. Restarting will restart all task runs in Failed & Cancelled states and run any task runs in a Pending state. Task runs that rely on upstream results require Results.
    Andrew Hah

    Andrew Hah

    8 months ago
    Thanks!
    Kevin Kho

    Kevin Kho

    8 months ago
    If this is something you need consistently, you may need to explore a Flow of Flows setup, so that you can run the subflow independently also with the
    create_flow_run
    task