We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi can you prove an example how to make async read query?
This works well writing data but I can't implement it for reading. I use this function:
async def read_record(): reader = client.query_api() q='from(bucket:"my-bucket") |> range(start: -30m)' return asyncio.get_running_loop().run_in_executor(None, reader.query(q))
and I'm calling it with
result= await read_record()
however I get ValueError: [RuntimeError("await wasn't used with future"), TypeError('vars() argument must have __dict__ attribute')]
ValueError: [RuntimeError("await wasn't used with future"), TypeError('vars() argument must have __dict__ attribute')]
The text was updated successfully, but these errors were encountered:
Got it working with the following change to the function:
async def read_record(): reader = client.query_api() q='from(bucket:"my-bucket") |> range(start: -30m)' return await asyncio.get_running_loop().run_in_executor(None, partial(reader.query, query=q))
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hi can you prove an example how to make async read query?
This works well writing data but I can't implement it for reading. I use this function:
and I'm calling it with
result= await read_record()
however I get
ValueError: [RuntimeError("await wasn't used with future"), TypeError('vars() argument must have __dict__ attribute')]
The text was updated successfully, but these errors were encountered: