https://prefect.io logo
Title
d

dherincx

02/20/2023, 5:11 PM
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

redsquare

02/20/2023, 5:43 PM
ctx = get_run_context()
flow_id = ctx.flow_run.flow_id