https://prefect.io logo
Title
h

Heather DeHaven

11/14/2022, 10:07 PM
Hi, I'm using 1.0. Is it possible to programmatically get FlowRunViews from flow run names rather than flow run ids? I'm trying to get the state of flow runs using names.
k

Kalise Richmond

11/15/2022, 12:36 AM
I see it takes a name in the FlowRunViews api but not sure if there is a function you can call for just the names. https://docs-v1.prefect.io/api/latest/backend/flow_run.html#flowrunview You could always first call a graphql query to return the flow id before passing it to the method.
z

Zanie

11/15/2022, 5:24 AM
It does not, since names are not necessarily unique. I’d happy accept a pull request that adds a
from_flow_run_name
method which retrieves the latest flow run for the given name.