Zach
06/10/2020, 3:48 PMKyle Moon-Wright
06/10/2020, 3:56 PMwhere
clause.
Hope that helps!Zach
06/10/2020, 3:58 PMKyle Moon-Wright
06/10/2020, 4:06 PMChris White
06/10/2020, 4:13 PMclient.graphql("""
query{
project(where: {name: {_ilike: "%stick%"}}){
name
}
}""")
and it worked fineZach
06/10/2020, 4:28 PMclient.graphql("""query {
flow_run_state(where: {
state: {
_eq: "Failed"
}
}) {
message,
state,
}
}""")
error:
prefect.utilities.exceptions.ClientError:
[{
'path': ['flow_run_state'],
'message': 'Response not successful: Received status code 500',
'extensions': {
'code': 'INTERNAL_SERVER_ERROR',
'exception': {
'name': 'ServerError',
'response': {
'size': 0,
'timeout': 0
},
'statusCode': 500,
'result': {
'errors': [
{
'extensions': {
'path': '$',
'code': 'unexpected'
},
'message': 'database query error'
}]}}}}]
Kyle Moon-Wright
06/10/2020, 5:42 PMZach
06/11/2020, 4:18 PMflow_run_state->flow_run->task_runs
I get a 500 error. It seems to happen whenever I query the task runs, but I can't figure out why. If I take the the task runs part out it works fine.Kyle Moon-Wright
06/11/2020, 6:53 PMimport prefect
client = prefect.Client()
client.graphql(
"""
query {
flow_run_state {
created
flow_run {
created,
task_runs {
created
}
}
}
}
"""
)