https://prefect.io logo
p

Pedro Martins

11/10/2021, 6:32 PM
Hey guys! Is there a way for the Task to know the
flow_run_id
during runtime? I will run this flow many times and for run I’d like to save the
flow_run_id
associated with it along with other metadata.
k

Kevin Kho

11/10/2021, 6:34 PM
Hey @Pedro Martins, inside a task, do
prefect.context.get("flow_run_id")
p

Pedro Martins

11/10/2021, 6:34 PM
awesome @Kevin Kho! Thank you.