In Prefect 1, the context object had a `flow_id` ...
# ask-community
d
In Prefect 1, the context object had a
flow_id
property that we were accessing the following way using
prefect.context.get("flow_id")
. In Prefect 2, I am looking for the equivalent property in the context object, but have only managed to find a
flow_run_id
. Am I missing something here?
r
Copy code
ctx = get_run_context()
flow_id = ctx.flow_run.flow_id