Daniel Komisar
12/20/2021, 3:21 PMAnna Geller
from prefect.backend import FlowRunView
# Create a new instance using an ID from the UI or from the output of the `prefect run` command
flow_run = FlowRunView.from_flow_run_id(
"4c0101af-c6bb-4b96-8661-63a5bbfb5596"
)
# You now have access to information about the flow run
flow_run.labels # {"foo"}
Daniel Komisar
12/20/2021, 3:24 PM