https://prefect.io logo
Title
t

tkanas

05/20/2020, 5:37 PM
Is it possible to retrieve the flow that was run from a result object?
n

nicholas

05/20/2020, 5:41 PM
Hi @tkanas! Can you provide some code for what you're trying to do?
t

tkanas

05/20/2020, 11:06 PM
I'm not actually sure what the code would look like. If I ran a flow like this:
state = flow.run(**params)
, I would want a copy of the runnable
flow
object to be somewhere inside
state
, so that I could do
flow_copy.run(**params)
where
flow_copy = state.<some-attribute>
n

nicholas

05/20/2020, 11:10 PM
Ah I see. I think this page might give some insight into Results in Prefect: https://docs.prefect.io/core/concepts/results.html#result-objects