Hi Folks - I have a flow that uses the Prefect pro...
# prefect-community
b
Hi Folks - I have a flow that uses the Prefect provided
RenameFlowRun
. Would it be expected that in a downstream task if I call
prefect.context.get("flow_run_name")
the new/updated name is returned?
k
Yes because it makes an API call to change the name
b
That was my assumption, but the logs are showing the auto generated flow run name instead of the new name.
k
Ohh my bad that makes sense because context is already generated and immutable for the most part
b
Is there a way to easily get the updated name?
I was thinking
client.get_flow_run_info
k
I haven’t used that. I was thinking the FlowRunView. Instantiate from a flow_run_id, and then try pulling the
name
attribute
b
Thanks!
k
Your way might be better though. Not sure