Hayden Sansum
06/22/2021, 9:53 PMKevin Kho
query {
flow_run(
where: {flow: {name: {_eq: "gh storage"}}}
order_by: {created: desc}
) {
name
id
flow {
name
}
logs {
id
message
timestamp
}
}
}
Hayden Sansum
06/22/2021, 10:01 PMHayden Sansum
06/23/2021, 5:26 PMquery {
flow(where: { name: { _eq: "flow_name" },
id: { _eq: "flow_id"}}) {
id
name
flow_runs(where: { state: {_eq: "Success"}, start_time: {_gt: "2021-06-22T00:00:00.000000+00:00"}}
order_by: { start_time: desc }
) {
id
state
start_time
name
logs {
id
message
timestamp
}
}
}
}
And when running the same query through python using the prefect Client (client.graphql
) I get the error:
ClientError: [{'path': ['flow'], 'message': 'field "logs" not found in type: \'flow_run\'', 'extensions': {'path': '$.selectionSet.flow.selectionSet.flow_runs.selectionSet.logs', 'code': 'validation-failed', 'exception': {'message': 'field "logs" not found in type: \'flow_run\''}}}]
Do you have any ideas on why this might be occurring?Kevin Kho
Kevin Kho
Hayden Sansum
06/23/2021, 8:22 PMv0.14.2
but I've also tried on v0.14.22
and I get the same results either wayKevin Kho
Hayden Sansum
06/23/2021, 8:24 PMlogs {
id
message
timestamp
}
from the query so I know it is at least correctly querying the flow but when I try to also grab the logs I get the errorKevin Kho
Hayden Sansum
06/23/2021, 8:25 PMKevin Kho
Hayden Sansum
06/23/2021, 8:32 PMKevin Kho
Hayden Sansum
06/23/2021, 8:56 PMKevin Kho
query {
log(where:{flow_run_id: {_eq: "<<>>"}}) {
message
timestamp
id
level
}
}
Hayden Sansum
06/23/2021, 9:03 PMClientError: [{'path': ['log'], 'message': 'field "log" not found in type: \'query_root\'', 'extensions': {'path': '$.selectionSet.log', 'code': 'validation-failed', 'exception': {'message': 'field "log" not found in type: \'query_root\''}}}]
Kevin Kho
Hayden Sansum
06/23/2021, 9:09 PMKevin Kho
Hayden Sansum
06/23/2021, 9:13 PMKevin Kho
Hayden Sansum
06/23/2021, 9:15 PM