Timo Vink

01/26/2023, 10:10 PM
Hi all 👋! Is there some way to interact with the data produced by
programmatically in Prefect 2? e.g. initialize a local flow run with persisted state/results from some remote flow run? Usecase: Flow fails in remote environment a few hours into a run. It'd be nice if a developer could run that flow locally in their debugger, but initialize the flow using the persisted results from the remote run to skip straight to the tasks that failed.


01/26/2023, 10:24 PM
You could run the flow locally with
python -m prefect.engine <flow-run-id>
and it would load the existing task states and results instead of starting them again
A more proper way to go about it would be to configure task run cache keys though.

Timo Vink

01/26/2023, 10:30 PM
Will look into this. Thanks!