I’m having trouble retrieving flow run history in ...
# prefect-community
k
I’m having trouble retrieving flow run history in 1.3. This used to return all the history (many, many objects for a flow), but now it is only returning 1 result. The UI is in a weird state where the run history is also only displaying one row, but if I drill in I see the actual history which has many successful flows
Copy code
query {
  flow_run(where: {flow: { id: {_eq: "7c5e836d-cedb-4d05-b566-c0fb6d6d9c0a"}},
           state: {_nin: ["Scheduled", "Running", "Cancelling"]}},
           order_by: {scheduled_start_time: desc} limit: 500 ) 
    {   
    id
    name
    state
    start_time
    end_time
    flow { name id }  }
}
c
what happens if you remove the state select ?
and is there a new version of that flow?
how many versions of that flow are there?
k
@Christopher Boyd it will show the flows that are scheduled but not any of the numerous ones that completed with “Success” status
There is one version
If I drill into the flow it will show the correct history
It is inconsistent, but as far as I can tell the public graphql API is the one that isn’t showing the history. This is a problem because we collect this data for internal monitoring purposes.