https://prefect.io logo
Title
s

Sumit Kumar Rai

08/26/2021, 3:14 AM
Hello everyone, is there a way to manually run a Prefect flow from the middle of the schematic in Prefect Server(Prefect Cloud)? Sometimes my flow fails and I need to skip tasks and run from the middle.
k

Kevin Kho

08/26/2021, 3:26 AM
Hey @Sumit Kumar Rai, retrying will only run failed tasks. If you want to only run the midpoint onwards, you can either apply caching to the first tasks, or you would need to package the midway onwards as it’s own subflow that can be triggered with a
StartFlowRun
task
s

Sumit Kumar Rai

08/26/2021, 3:28 AM
I use ECSRun to run my flows, does the caching work on it?
k

Kevin Kho

08/26/2021, 3:37 AM
Caching is a Prefect thing you have to apply to the task so it will work with all RunConfigs. These states will be stored in the Prefect database