https://prefect.io logo
Title
p

Priyank

08/22/2022, 6:12 AM
Hi, I am using graphql api to query prefect database but getting timeout exception.
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=4200): Read timed out. (read timeout=15)
How can I change or configure this timeout ? Also we're running this query for our locally hosted prefect (prefect 1.0)
def readDatabase(query: dict) -> None:
    client = prefect.Client()
    data = client.graphql(query)
1
j

Jeff Hale

08/22/2022, 3:18 PM
See this discourse topic showing how.