Hey again :slightly_smiling_face: I’m trying to ge...
# ask-community
e
Hey again 🙂 I’m trying to get the params that flow was run with in a state handler method but
new_state.result
keeps being an empty dict when running on prefect agent if i’m running the flow using
flow.run
I do see the results of the state
a
@Eric Feldman within the state handler, you should be able to retrieve the parameters from Prefect context:
Copy code
prefect.context.get("parameters")
e
Thanks 🦜!!
k
The
results
is not populated for runs with backend because it can be expensive to keep them all in memory.