Hi, I'm working with Prefect and having a flow_id ...
# prefect-community
f
Hi, I'm working with Prefect and having a flow_id in my database. But I don't find anywhere to list the flow_run_id(s) of my flow_id. I would like to have something like get_flow_info for flows such as get_flow_run_info could return for flow runs : https://github.com/PrefectHQ/prefect/blob/9f415155a661614386a7041329d221cb001ccbe8/src/prefect/client/client.py#L1195 Do you have any solution? Thank you
k
I think you need to make a custom GraphQL API query and use
client.graphql()
Copy code
query {
    flow (where: {id: {_eq: "flow_id_here"}}) {
        id
        name
        flow_runs {
            id
        }
    }
}
Something like that?
🙌 1
1
f
I will try this. Thank you very much for the quick answer.
Worked perfectly !
👍 1