Think there may be a bug in the GQL API;
# prefect-community
j
Think there may be a bug in the GQL API;
👀 1
Copy code
query Task_run($where: task_run_bool_exp) {
  task_run(where: $where) {
    id
    flow_run_id
    state
    task {
      name
    }
  }
}
With variables;
Copy code
{
  "where": {
      "start_time": {
        "_gte": "2022-07-20",
        "_lt": "2022-07-21"
      }
}
Always times out;
Copy code
{
  "errors": [
    {
      "path": [
        "task_run"
      ],
      "message": "Operation timed out",
      "extensions": {
        "code": "API_ERROR"
      }
    }
  ],
  "data": null
}
m
Hey @Joshua Greenhalgh, Do you know if this query runs in the Interactive Api when you're signed in to cloud.prefect.io?
j
@Mason Menges I don't use that no idea how to do variables in it...