Hi all :wave:! Is there some way to interact with ...
# ask-community
t
Hi all 👋! Is there some way to interact with the data produced by
persist_result=True
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.
z
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.
t
Will look into this. Thanks!